Is it possible to make a conditional sidebar with Sidebar Generator?
-
I’m attempting to make a dynamic sidebar from scratch knowing next to nothing about PHP. (Couldn’t get Sidebar Generator to work or find another compatible plugin.) There’s different content (differently styled) depending on the page:
- On pages About, Classes, Testimonials, and Resources, there will be a picture. (This part of the code was tested and found to work.)
- Pages Ask and Connect will each have a different form (that have been working fine all along).
- Pages based on single.php, category.php, archive.php, and search.php will have a sidebar that pretty much mimics the footer.*
- The Calendar page will have a calendar
<?php ec3_get_calendar(); ?>
in the sidebar.
The site:
https://www.carrieduncandesign.com/wordpress/category/investing/
The category page template:
https://wordpress.pastebin.ca/1770461″>
The sidebar:
https://wordpress.pastebin.ca/1770495″>*I removed
<?php get_sidebar( ‘sidebar.php’ ); ?>
from category.php (post-paste) so you can see the basic sidebar that will appear on single.php, category.php, archive.php, and search.php.
Thanks so much for any insight you can offer.
- The topic ‘Is it possible to make a conditional sidebar with Sidebar Generator?’ is closed to new replies.