Want all single posts to have no sidebar

Basic support is open to all members of Volatyl Themes but what about those who need a little more? That's what Volatyl Themes subscriptions are for. The Priority Support subscription gets you more detailed, personal support while the Advanced Development subscription not only includes Priority Support, but also grants you access to premium content only seen by subscribers. This premium content will help you take your Volatyl websites to the next level with advanced development techniques, integration tips, and more information on how to really put Volatyl to use. Check out the subscriptions!

The Affordable WordPress Framework Forums Basic Support Want all single posts to have no sidebar

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  sdavis2702 5 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #4368

    Charlie Pabst


    Lovin’ Volatyl so far! I’m wondering if there is a simple way to have all single posts show no sidebar and have the content column centered. All of the other pages should still have sidebars shown…just not single posts.

    I know this can be done with with CSS (in fact I just did that), but I think there is probably some more brilliant and bulletproof way to do it with the template structure and I’m tryin’ to learn me some new stuff 🙂


    Thanks in advance!



    Post count: 72

    Hey, Charlie! Great first question and I’m glad to see you taking Volatyl and customizing its structure right out of the gate.

    The best way to do that is to copy sidebar-one.php into the root of your child theme so it’ll be used instead of the parent theme’s. Then wrap the entire sidebar HTML in a conditional that only runs the code if it’s NOT a single post.

    So in your sidebar-one.php file (child theme), you’d find:

    <div id="sidebars" class="widget-area sidebar-1 border-box">

    and place this right ABOVE it:

    <?php if (!is_single()) { ?>

    Then at the bottom of the file find:


    And place this right below it:

    <?php } ?>

    The same is true if you plan on using a 3 column layout. Just copy sidebar-two.php to the child theme and do the same exact thing.

    From there, have a little fun with CSS! I’d use the .single-post body class to start off each selector to make sure you don’t affect any other pages.

    Let me know if this helps!


    Charlie Pabst

    Like a boss!

    Thanks a million, Sean. Appreciate the help and the warm, non-condescending welcome.

    The theme is excellent to work with. It’s quite clean and streamlined…never seen a framework built quite like this. Gonna have some fun building child themes for this.

    Anyway…problem solved. Thanks again! See you ’round the webs.



    Post count: 72

    Man, thanks a ton for the kind words and I’m glad that worked for you! Let me know if you need any help with the child theme setup. Also let me know if you go to do something you think should be simple and it’s not. I’m always looking to improve core!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.