-
-
Save asufian97/6b2ad69800862abf50bdefb3ea5fce5e 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