Tagged: Portfolio + sidebar
Hi, I made a custom sidebar called Sidebar Portfolio. I added a navigation widget with links to the Portfolio Categories.
How do I get this sidebar to show up on the Portfolio Category pages? For example like you have on this page:
Thank you!
Hey kallym,
You can use a plugin like: https://de.wordpress.org/plugins/widget-logic/ to display the widget area(s) only on certain pages, category pages, etc.
If you want to display the widget on portfolio category pages you can use this conditional:
is_tax( 'portfolio_entries' )
If you don’t want to mess around with code you can try this plugin instead: https://de.wordpress.org/plugins/ah-display-widgets/
Best regards,
Dude
Hi, thanks for the advice. I ended up changing the taxonomy-portfolio_entries.php page and putting it in my child theme. I simply changed the sidebar call to get the dynamic sidebar:
$avia_config['currently_viewing'] = 'portfolio';
//get_sidebar();
dynamic_sidebar('Sidebar Portfolio');
I will keep an eye out for updates/changes to this file in the enfold theme. I would have preferred to use a function, but this works, and the file looks like it is probably not one that would be updated often.
Thanks!
Hi,
Great, glad you found a solution and thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Thank you! It’s resolved.