Support » Themes and Templates » Different sidebars on different pages
4 years, 10 months 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.
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.
Oops. View code in Pastebin.