-
AuthorPosts
-
April 25, 2014 at 12:22 pm #37189
Is this possible? thanks
April 25, 2014 at 8:35 pm #37338Hi 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!
April 30, 2014 at 2:58 am #38813This reply has been marked as private.April 30, 2014 at 7:50 pm #39111Hi 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.
May 6, 2014 at 3:14 pm #41232Hi,
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!
May 7, 2014 at 9:57 am #41540Hi 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.
May 7, 2014 at 12:09 pm #41603Wow thank you so much! I should’ve thought about that before!
Have a good day.
May 7, 2014 at 11:17 pm #42002You’re welcome Justin.
-
AuthorPosts