• Resolved georgedamian78

    (@georgedamian78)


    Reading the topics here I saw that the issue of a post without sidebar came up, but in the end it proved to be about the page without a sidebar. What would be the solution for a post without sidebar?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Hi there – could you please provide a link to your site? Do you want to hide the sidebar on all posts, or just a specific one?

    Thread Starter georgedamian78

    (@georgedamian78)

    Right now I am testing canard, I don’t have it installed permanently. I would be interrested to have just some posts with the sidebar hidden, not to remove it permanently.

    Moderator Kathryn Presner

    (@zoonini)

    You can hide the sidebar on specific posts by adding some custom CSS in this format:

    .postid-31 .widget-area, .postid-36 .widget-area {
      display: none;
    }

    Add a new selector for each post you’re targetting. You can find the post ID in the browser’s source on the body tag (31 and 36 are just examples) or by looking in the adress bar when you’re editing the post. You can add as many posts as you like.

    Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated.

    An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS. You could also install a standalone custom CSS plugin if you prefer.

    Thread Starter georgedamian78

    (@georgedamian78)

    Thanks! I worked like a charm.

    Moderator Kathryn Presner

    (@zoonini)

    Great! I’ll mark this thread as resolved but feel free to start a new one if you need help with anything else.

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

The topic ‘No sidebar on posts’ is closed to new replies.