Home › Forums › Support › Full width page default This topic has 5 replies, 4 voices, and was last updated 5 years, 10 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts April 8, 2017 at 6:42 am #303374 Jason Westbrook Is it possible to auto set pages to be full-width globally without having to select it as an option on each page April 8, 2017 at 9:50 am #303417 TomLead Developer Lead Developer You could add a function like this: add_filter( 'body_class','tu_add_body_class' ); function tu_add_body_class( $classes ) { if ( is_page() ) { $classes[] = 'full-width-content'; } return $classes; } June 29, 2018 at 3:37 am #611302 Steven Hi Tom, Is there a way to customize this code to include posts as well? Thanks a lot June 29, 2018 at 4:01 am #611316 DavidStaff Customer Support Hi there, like this: add_filter( 'body_class','tu_add_body_class' ); function tu_add_body_class( $classes ) { if ( is_page() || is_single() ) { $classes[] = 'full-width-content'; } return $classes; } GP 1.7 is close to beta release where this becomes super simple ๐ June 29, 2018 at 4:11 am #611320 Steven Hi David, Thanks! Good to know ๐ June 29, 2018 at 4:13 am #611321 DavidStaff Customer Support Glad to be of help. Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In