Hey there,
I’m having the same issue. I tried following all those steps above but cannot seem to get rid of the sidebar. 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.