Skip to content

Instantly share code, notes, and snippets.

@braginteractive
Created April 7, 2017 05:24
Show Gist options
  • Save braginteractive/b305117ed5f1a73f19e3a77b0965761d to your computer and use it in GitHub Desktop.
Save braginteractive/b305117ed5f1a73f19e3a77b0965761d to your computer and use it in GitHub Desktop.
WordPress Filter to change the Custom Logo class
/**
* 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);
@pavlo-bondarchuk
Copy link

thnks! work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment