Archived topic
Fonction (Filter ?) pour definir un layout par defaut
3 replies · Started by Jean on October 20, 2022
Viewing posts 1–4 of 4
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 !
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.
Hello !
yeah... thanks for your quick answer.
I prefer filters :)
Regards.
You're welcome Jean!
This archived topic is closed to new replies.