• Tali

    (@taliblankfeld)


    Hi,

    I’m trying to remove the sidebar from my website’s pages so that the main content takes up the entire page. How do I do that?

    I read elsewhere a suggestion to add
    #primary {
    display: none;
    }
    #content {
    margin: 0;
    }

    into the sidebar.php editor but this has made the entire website blank…

    Help please!
    Thanks,
    Tali

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Mel Choyce-Dwan

    (@melchoyce)

    Hi there,

    First off, you’ll want to make a child theme or use a CSS editor plugin. If you’re using the Jetpack plugin, it comes with a CSS editing feature.

    Next, to remove the sidebar, you’ll want to enter this into your CSS editor:

    .entry-footer {
        display: none;
    }
    
    .singular .entry-content .wrapper {
        margin: 0;
    }

    That should hide the sidebar and let the main content take up the full width of the page.

    Hi,

    I was thinking if instead of removing the sidebar completely, it could just be moved to the bottom of the post, so the post itself could have all the width? Just want the publish date and tags.

    I’ve been trying to modify CSS but so far unsuccessful!
    Thanks!

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

The topic ‘Remove Sidebar from Pages’ is closed to new replies.