[Support request] Fonction (Filter ?) pour definir un layout par defaut

Home Forums Support [Support request] Fonction (Filter ?) pour definir un layout par defaut

Home Forums Support Fonction (Filter ?) pour definir un layout par defaut

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2379605
    Jean

    Hello πŸ™‚

    I’m looking in the documentation for the hook that would allow me to set the default full-width layout for all my content.
    Thanks in advance !

    #2379615
    Fernando
    Customer Support

    Hello Jean,

    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.

    #2379932
    Jean

    Hello !

    yeah… thanks for your quick answer.
    I prefer filters πŸ™‚

    Regards.

    #2380565
    Fernando
    Customer Support

    You’re welcome Jean!

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