Support » Theme: Capoverso » Remove sidebars from static pages?

  • Rebecka


    I wonder how I remove sidebars (under primary menu and in the footer) from being displayed on static pages? I only want to keep it on the blog page (and single posts, archive pages).

    I tried by removing the following from page.php

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    But it only resulted in the menu and footer info disappering, too. I want to keep the menu and site info on static pages.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • supernovia


    Hi @rebecka, while we can’t write the code for you, we could suggest a few options and hints:

    1 – Be sure you’re using a child theme rather than editing the theme itself

    2 – Consider adding logic to the sidebar.php so it only shows on certain types of pages

    3 – You’ll likely need to adjust your CSS, too, so you’re not left with a big gap where the sidebar was

    Noting as well, this is an older theme. Many newer themes have page templates that can remove the sidebar for you, so you might look into that as well.

    Good luck!

    • This reply was modified 2 years ago by supernovia. Reason: clarifying
    Thread Starter Rebecka


    Tanks @supernovia I’ll take a look at this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove sidebars from static pages?’ is closed to new replies.