Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Wanted to see if you were able to get this fully resolved or not?

    Thread Starter jedicolin

    (@jedicolin)

    I have found out how to remove the side bar from all pages and posts but I want to keep the side bar just on the home page but no where else.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Is there a page/post that is not doing that?

    Thread Starter jedicolin

    (@jedicolin)

    On my site https://www.everest1953.co.uk I have pages and posts.

    I want to get rid of the side bar on ALL pages and posts except the Home page.

    I have managed to delete the sidebar from the ‘pages’ except the Home page that I want to keep it on.

    But when I delete the side bar on the Posts it also delete it from the Home page.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Sorry for the late reply.

    I did see this:

    The operation of this website has been ended. No themes are no longer supported and maintained.

    This was from the theme author’s site ( https://www.tomastoman.cz/ ).

    I do want to ask one more thing so I can at least help you out with this. How did you remove the sidebar from the other pages?

    Thread Starter jedicolin

    (@jedicolin)

    Pages:

    When you click ‘edit page’ on the right side you will see ‘Template’. It gives several options, I have my ‘pages’ set on ‘Full Width’ to not show the side bar.

    Posts:

    But when you click ‘edit post’ there are no Template options there to make the side bar disappear.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Cool beans.

    Well, since the theme will most likely not going to be updated any time soon, it is somewhat safe to edit the files directly. I’m not sure how comfortable you are with editing PHP or code in general but here goes.

    In an FTP program, you will want to navigate to the wp-content/themes/shootingstar folder. In there you will see a lot of files. Don’t freak out. The file you will make the change to is single.php because this is what is used when viewing posts. The part that you will edit is towards the bottom of the file. Look for:

    
    <?php get_sidebar(); ?>
    

    What you will do is simply add // in front of the get_sidebar. So the new code will look like:

    
    <?php //get_sidebar(); ?>
    

    Save those changes. That’s it! The sidebar will be removed. Now the slightly tricky part, adding the CSS so it goes to full width. In the Customizer navigate to Additional CSS and use the following:

    
    .single-post#wrapper #container #main-content #content {
      width: 100%;
    }
    

    Let us know if this helps!

    Thread Starter jedicolin

    (@jedicolin)

    Thank you for your help. It is a little bit out of my league to do this but I will try and get a friend to have a look for me.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can I Remove Side Bar’ is closed to new replies.