Viewing 6 replies - 1 through 6 (of 6 total)
  • remove <?php get_sidebar ?> from your template files.

    Thread Starter tobbger

    (@tobbger)

    In which file?

    The ones located in your theme directory. I don’t really remember every file that has it, but I know it is in index.php, page.php and archive.php..

    Your main template file for the front page and typically most of your posts is called index.php and you will find the get_sidebar there. In some themes, they also have specific template files for categories, single posts, archives, searches, etc. Those are typically:

    single.php
    post.php
    archive.php
    archives.php
    search.php
    category.php
    category-1.php

    So if you remove the sidebar from index.php and it pops up on one of the other “pages”, you may have to search through these in order to get rid of the same code.

    Actually, in the case of the Classic theme you have to edit it from footer.php. Believe it or not.

    I’m wondering, I’m using the theme andreas09 and at the website:

    https://tombammann.homedns.org/journal/photos/

    I’m trying to make my minigal gallery go 100% across the screen. As you can see, I’ve managed to delete the sidebars, although I can’t get rid of the blank space to the left (and to the right, depending on the size of the window).

    I’ve followed the tutorial to integrate the gallery here:

    https://www.minigal.dk/tutorial002.php

    And got it all ‘down-pat’. I think the problem is that I’ve got the gallery to load a copy of my andreas09 themes style.css file, which I’ve named as mg2style.css – and to the best of what I can understand from the tutorial you modify this css file to get rid of the sidebars. I’ve tried all the logical guesswork I can think of for this, and tried contacting the author of the tutorial, but until I can acquire his example, can anyone offer any advise?

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Delete sidebars’ is closed to new replies.