By default, Genesis will add some classes to the <body>
element depending on how your page header is set up. You may see custom-header
, header-image
, or header-full-width
. Use the following single line of code to stop Genesis from adding these classes altogether.
<?php | |
/** | |
* Stop Genesis adding `header-*` classes to <body>. | |
* | |
* @since 1.0.0 | |
*/ | |
remove_filter( 'body_class', 'genesis_header_body_classes' ); | |
Leave a Reply