• Resolved lrmlyndsay

    (@lrmlyndsay)


    Hello!

    I’ve searched through so many responses and tried so many things!
    My single portfolio pages contain sidebars, and I want them gone.
    I’ve set the page to 100% full width through elementor, and through the oceanwp theme. I’ve got all my pages set to full width in the customizer, including the blog settings. I’ve added some code to the function.php file, and that also did not work. Tried using 4 or 5 different css codes as well. These things won’t budge. I’m out of options! Please help!

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Try adding the below code to the functions.php file of the oceanwp child theme and check it works or not –

    function my_post_layout_class( $class ) {
    	if ( is_singular( 'jetpack-portfolio' ) || is_archive( 'jetpack-portfolio' ) ) {
    		$class = 'full-width';
    	}
    	return $class;
    }
    add_filter( 'ocean_post_layout_class', 'my_post_layout_class', 20 );
    Thread Starter lrmlyndsay

    (@lrmlyndsay)

    This worked! Thank you so much! You are the best.

    Thread Starter lrmlyndsay

    (@lrmlyndsay)

    Haha, oh dear. I thought it solved it, but it didnt completely. It certainly got me another step in the right direction though!

    Is it fixed? Let me know if you will have any issue with it.

    Thread Starter lrmlyndsay

    (@lrmlyndsay)

    Your code got rid of the sidebar, which is definitely what I was hoping! Thank you! It seems that I still have to figure out how to get the content to sit full width though. I’ve gone through my theme and elementor and set everything I can possibly find to full width, but the content hasn’t responded. Do you perhaps have another suggestion that might help with this issue?

    Do you mean 100% full-width, right? Try to use the class full-screen instead of full-width in the code I gave you.

    Thread Starter lrmlyndsay

    (@lrmlyndsay)

    You are a magician. That worked completely! Wow. Thank you so much, it’s been almost 2 weeks of banging my head against the wall. I can’t thank you enough. Keep killing it!

    You’re most welcome!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Can’t remove sidebar from single portfolio’ is closed to new replies.