Skip to content

Instantly share code, notes, and snippets.

@damiencarbery
Created February 25, 2020 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damiencarbery/20894fdf07a8d7191191717f7722ca5a to your computer and use it in GitHub Desktop.
Save damiencarbery/20894fdf07a8d7191191717f7722ca5a to your computer and use it in GitHub Desktop.
Remove "aux-phone-off" from Phlox theme - https://wordpress.stackexchange.com/a/359292/57684
<?php
/*
Plugin Name: Remove "aux-phone-off" from Phlox theme
Plugin URI: https://wordpress.stackexchange.com/a/359292/57684
Description: Remove "aux-phone-off" from header template in Phlox theme.
Author: Damien Carbery
Author URI: https://www.damiencarbery.com
Version: 0.1
*/
add_filter( 'auxin_shopping_basket', 'dcwd_remove_aux_phone_off_class', 10, 2 );
function dcwd_remove_aux_phone_off_class( $markup, $args ) {
return str_replace( 'aux-phone-off', '', $markup );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment