Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #995796

    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!

    #995856

    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

    #996171

    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!

    #996242

    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

    #996365

    Thank you! It’s resolved.

    #996380

    Hi,
    Glad Dude could help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Custom Sidebar for Portfolio Category Pages’ is closed to new replies.