[Resolved] Function / Filter for full width template

Home Forums Support [Resolved] Function / Filter for full width template

Home Forums Support Function / Filter for full width template

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1313934
    Fabien

    Hi,

    Is there a PHP function/filter to force full-width template (similar of what you can do with the layout element) ?

    Thanks

    #1314533
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    #1318763
    Fabien

    Awesome, thanks Tom !

    #1319518
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.