WordPress.org

Ready to get started?Download WordPress

Forums

Different sidebars on different pages (3 posts)

  1. rzul
    Member
    Posted 2 years ago #

    I am trying to use the themes primary sidebar on all pages and the secondary sidebar only on the home page and contact us page. The get_sidebar function is in the footer file. It used to read:

    [107 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Any suggestions. I'm guessing it is simple. I just don't know what I'm messing with here.

  2. rzul
    Member
    Posted 2 years ago #

    The primary sidebar is showing up on all pages and the "<?php else : ?>" portion with a link back to the home page is showing up as well. But the first two conditional statements show no results.

  3. rzul
    Member
    Posted 2 years ago #

    Oops. View code in Pastebin.

    Original footer.php
    http://pastebin.com/LAKgSZbr

    Modified footer.php
    http://pastebin.com/miK4QvsS

Topic Closed

This topic has been closed to new replies.

About this Topic