Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1422517

    Portfolio Category OR Portfolio Archive pages are currently displaying the ‘Displayed Everywhere’ sidebar, which is not the intended behavior. I would like to activate the archive sidebar on the portfolio category page. Is there a solution for this?

    #1422613

    Hey waqas_vitalsols,

    Thank you for the inquiry.

    You can use the avf_custom_sidebar filter to assign a custom sidebar for the portfolio category or archive pages.

    add_filter("avf_custom_sidebar", function($custom_sidebar) {
        if ( is_tax('portfolio_entries') ) { 
            $custom_sidebar = "Sidebar Portfolio"; 
        }
        return $custom_sidebar;
    }, 10, 1);
    

    The filter above assigns the “Sidebar Portfolio” widget area, which must be manually created in the Appearance > Widgets panel.

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.