Altering Layouts (Full Screen, No Sidebar, Left Sidebar, Right Sidebar)
/**
* Alter your post layouts
*
* @return full-width, full-screen, left-sidebar or right-sidebar
*
*/
add_filter( 'wpex_post_layout_class', function( $class ) {
// Alter your custom post type layout
if ( is_singular( 'YOUR_CPT' ) ) {
$class = 'full-width';
}
// Return correct class
return $class;
}, 20 );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)