Created
May 19, 2016 13:58
-
-
Save gareth-gillman/0df2385e47a86f929c2054d71de1f4eb to your computer and use it in GitHub Desktop.
Add custom class to WordPress Custom Logo (since 4.5)
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
add_filter('get_custom_logo', 'prefix_custom_logo_output', 10); | |
function prefix_custom_logo_output( $html ){ | |
$html = str_replace( 'custom-logo-link', 'custom-logo-link navbar-brand', $html ); | |
return $html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment