-
-
Save navalon/e0bf5806930ec4ac39fb351461829007 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/
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
// 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; | |
} |
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
.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