Created
April 7, 2017 05:24
-
-
Save braginteractive/b305117ed5f1a73f19e3a77b0965761d to your computer and use it in GitHub Desktop.
WordPress Filter to change the Custom Logo class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Changes the class on the custom logo in the header.php | |
*/ | |
function helpwp_custom_logo_output( $html ) { | |
$html = str_replace('custom-logo-link', 'navbar-brand', $html ); | |
return $html; | |
} | |
add_filter('get_custom_logo', 'helpwp_custom_logo_output', 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thnks! work fine.