Archived topic
Function / Filter for full width template
3 replies · Started by Fabien on June 4, 2020
Viewing posts 1–4 of 4
Hi,
Is there a PHP function/filter to force full-width template (similar of what you can do with the layout element) ?
Thanks
The layout element simply adds a class to the body, so you could do this:
add_filter( 'body_class', function( $classes ) {
$classes[] = 'full-width-content';
return $classes;
} );
Or you can just add your own CSS :)
Awesome, thanks Tom !
You're welcome :)
This archived topic is closed to new replies.