Remove Genesis header classes from body tag

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' );
view raw functions.php hosted with ❤ by GitHub

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *