Home › Forums › Support › Filter hook for Content Container option? This topic has 3 replies, 2 voices, and was last updated 3 years, 2 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 7, 2023 at 7:44 pm #2487509 Ash I want to use filter hook to change the Content Container option (fullwith/contained) conditionally. But I could not find it in the documentation. This can not be done with the Elements or css since the condition is tricky, need php. January 8, 2023 at 6:21 am #2487811 DavidStaff Customer Support Hi there, the Layout Element or the Layout Metabox simply adds the relevant class to the <body> tag using the core body_class filter. The classes are: full-width-content and contained-content Heres an example of the filter: add_filter( 'body_class', function( $classes ) { $classes[] = 'full-width-content'; return $classes; } ); January 8, 2023 at 3:24 pm #2488255 Ash Thank you. January 9, 2023 at 2:08 am #2488570 DavidStaff Customer Support 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