Skip to content

Instantly share code, notes, and snippets.

@asufian97
Forked from braginteractive/extras.php
Last active January 5, 2019 04:55
Show Gist options
  • Save asufian97/6b2ad69800862abf50bdefb3ea5fce5e to your computer and use it in GitHub Desktop.
Save asufian97/6b2ad69800862abf50bdefb3ea5fce5e 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment