The generate_page_class
filter allows you to add custom classes to the #page
element.
For example:
add_filter( 'generate_page_class', function( $classes ) {
$classes[] = 'my-custom-class';
return $classes;
} );
The generate_page_class
filter allows you to add custom classes to the #page
element.
For example:
add_filter( 'generate_page_class', function( $classes ) {
$classes[] = 'my-custom-class';
return $classes;
} );