Different sidebars on different pages (3 posts)

  1. rzul
    Posted 4 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
    Posted 4 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
    Posted 4 years ago #

    Oops. View code in Pastebin.

    Original footer.php

    Modified footer.php

Topic Closed

This topic has been closed to new replies.

About this Topic