Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active October 29, 2016 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/725a29456b0f9bc05904 to your computer and use it in GitHub Desktop.
Save srikat/725a29456b0f9bc05904 to your computer and use it in GitHub Desktop.
How to get rid of image logo in Genesis. https://sridharkatakam.com/get-rid-image-logo-genesis/
// Removes 'header-image' class from the body_class array
add_filter( 'body_class', 'remove_class' );
function remove_class( $classes ) {
// search the array for the class to remove
$unset_key = array_search( 'header-image', $classes );
if ( false !== $unset_key ) {
// unsets the class if the key exists
unset( $classes[$unset_key] );
}
// return the $classes array
return $classes;
}
.header-image .site-title > a {
background: transparent;
min-height: 0;
width: auto;
float: none;
}
.header-image .site-title,
.header-image .site-description {
text-indent: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment