• Resolved Ganesh Dahal

    (@pauthake015)


    I am customizing this theme using a child theme for my blog. I would like to display all my single posts without sidebar (default). How could I achieve this? Any help appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • There are a couple of ways to approach this. First, you can use CSS entirely:

    .single #secondary {
        display: none;
    }
    
    .single #primary {
        width: 100%;
        padding-right: 0
    }
    

    The second option, since you’re already working with a child theme, would be to make a copy of single.php in your child theme’s folder and remove this line:

    <?php get_sidebar(); ?>

    Now the sidebar isn’t being called at all. Use the second CSS style from the above snippet to increase the content width and you should be good to go ??

    Thread Starter Ganesh Dahal

    (@pauthake015)

    @shireling, Thanks for the snippets and trick to customize. I have not tested in my test site yet.

    I have one more issue on navigation which I have started in a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Make Single Post Display with No-sidebar’ is closed to new replies.