Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #37189

    Daniel C
    Participant

    Is this possible? thanks

    #37338

    Support
    Member

    Hi Daniel!

    Thank you for using the theme!

    Yes, that is possible. Please go to Appearance > Sidebar then create or add a new sidebar. Select the post, page or taxonomies where you want this sidebar to show. After that, go to Appearance > Widgets then supply the newly created sidebar or widget area with widgets. Please take a look at the Unlimited Sidebar documentation on the Knowledge Base.

    Cheers!

    #38813

    macdaddyweb
    Participant
    This reply has been marked as private.
    #39111

    Rad
    Moderator

    Hi Petr,

    You can add this at your child theme’s functions.php, this will pick the very first sidebar set for your shop page.

    add_filter('ups_sidebar', 'fix_shop_sidebar', 10);
    
    function fix_shop_sidebar($sidebar) {
    	if(is_shop()) {
    		$sidebars = get_option( 'ups_sidebars' );
    		foreach ($sidebars as $sb) if($sb['index-shop']=='on') return $sb['name'];
    	}
    	else  return $sidebar;
    }

    Hope this helps.

    #41232

    Justin F
    Participant

    Hi,

    I am following the steps to add the sidebars onto the category archive pages and i’m assuming i did everything correctly but they still don’t show up.

    Is there a line of code that I would have to add?

    Thanks!

    #41540

    Alexander
    Keymaster

    Hi Justin,

    The code above isn’t for adding them to the archive pages, it’s for making them use the sidebar for shop instead of the main sidebar. Right now, the shop archive pages will follow the same settings for standard archive pages. So on that note, they’ll also be pulling from the main sidebar by default. Product categories are treated the same as normal archives in WordPress which is why it’s using the same settings

    If you go to Customizer > Blog > Archive you can choose whether or not to include a sidebar at all.

    Then you can use the code above to keep the shop sidebar on the taxonomy pages as well.

    This is something we’re looking into improving in future development.

    #41603

    Justin F
    Participant

    Wow thank you so much! I should’ve thought about that before!

    Have a good day.

    #42002

    Christian
    Moderator

    You’re welcome Justin.