• Hello everybody!

    I hope someone can help me, because I am not very good in this whole php / html thing!

    Website: https://www.yochitosway.de

    I am currently trying out the Foliage 1.02 Theme (which is a single colum theme) and I would like to add a second colum – respectivly a sidebar.

    I have tried just to add a <?php get_sidebar(); ?> into the page.php but nothing happens. When I add the same into intdex.php the sidebar.php is loaded at the bottom of the page (under the bottom block).

    How can I have the sidebar where it actually belongs?

    Thanks a lot for every tip!
    Yours,
    Phillip!

Viewing 1 replies (of 1 total)
  • You loaded the <?php get_sidebar(); ?> correctly into the index.php. The reason it shows at the bottom is probably 2 reasons:

    1) You didn’t put it into a div container somewhere; and
    2) You didn’t style the sidebar.

    To make it work with that theme, you’ll have to decide where you want the side bar, create a div (i.e. <div id=”sidebar”></div>) and put the get_sidebar() inside of there. Then go to the style.css and style it up how you like to match the theme. Looking at your code quickly, if you put the div id=sidebar before the last </div> of the div id=”content”, it will make teh side bar at least appear above the footer.

    Also realize you have to make this same modification to the other pages that you want a sidebar also, (i.e. Page, Single, etc.)

Viewing 1 replies (of 1 total)
  • The topic ‘How to add a sidebar / make a two colums?’ is closed to new replies.