Home › Forums › Support › Function / Filter for full width template This topic has 3 replies, 2 voices, and was last updated 3 years, 9 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 4, 2020 at 5:29 am #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 June 4, 2020 at 10:05 am #1314533 TomLead 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 ๐ June 8, 2020 at 1:26 am #1318763 Fabien Awesome, thanks Tom ! June 8, 2020 at 9:37 am #1319518 TomLead Developer Lead Developer You’re welcome ๐ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In