gareth-gillman
5/19/2016 - 1:58 PM

Add custom class to WordPress Custom Logo (since 4.5)

Add custom class to WordPress Custom Logo (since 4.5)

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;
}