Cannot Remove Side Bar On Custom Post Types & Blogs
-
Hey there,
I have the oceanwp theme and I installed a plug-in that creates posts for me (custom post type) and it displays the sidebar. I did everything I could and chose full width for both the general page layout and also for the blog section but it didn’t change anything at all.
I also tried to place the code:
/**
* Alter your post layouts
*
* Replace is_singular( ‘post’ ) by the function where you want to alter the layout
* @return full-width, full-screen, left-sidebar or right-sidebar
*
*/
function my_post_layout_class( $class ) {// Alter your layout
if ( is_singular( ‘post’ ) ) {
$class = ‘full-width’;
}// Return correct class
return $class;}
add_filter( ‘ocean_post_layout_class’, ‘my_post_layout_class’, 20 );in the functions.php file and that didn’t do anything also!
Any thoughts? Thanks.
The page I need help with: [log in to see the link]
- The topic ‘Cannot Remove Side Bar On Custom Post Types & Blogs’ is closed to new replies.