Forums

Different sidebar for homepage (thesis) (2 posts)

  1. aeon365
    Member
    Posted 2 years ago #

    What I want to do: all my pages have 2 columns: content +sidebar 1.
    I'd like the home page to use sidebar 2.

    I have a static page defined as front page, called home.
    This is how its called when I edith the page: /page.php?action=edit&post=14

    I tried to call the home page up with this
    if (is_home() || is_front_page() || is_page('14')) {
    ?>

    and later insert the sidebar like this:

    <div id="show-only-2">
    <?php sidebar_2(); ?>
    </div>

    Nothing happens on my site though. My guess is that there is something wrong with my first line of code.

    Anybody know what Im doing wrong here?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Instead of this:

    <?php sidebar_2(); ?>

    and use something like:

    <?php
    get_sidebar('mysidebar');// will include sidebar-mysidebar.php
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic