-
AuthorPosts
-
June 10, 2014 at 10:48 pm #277238
Hi there,
I am wishing to customize the sidebar that appears on my post archives, so it can be similar (same) to the custom sidebar i have created for my product pages.
I found a similar thread that discussed making a new php file for the archive sidebar, however the pastebin for the code had expired.
Thanks very much in advance for your help.
mike
June 11, 2014 at 4:58 am #277357Hey mikegrace78!
Thank you for using the theme.
Did you add the widget on the Shop Overview Page widget area? Please edit archives.php, find this code on line 78:
//get the sidebar $avia_config['currently_viewing'] = 'blog'; get_sidebar();
Replace it with:
//get the sidebar $avia_config['currently_viewing'] = 'shop'; get_sidebar();
Cheers!
IsmaelJune 11, 2014 at 5:16 am #277359Hi Ismael,
Thank you for your quick response!
No, I did not add the widget on the Shop Overview Page widget area. In fact, I cannot see this widget area at all. Is this something I need to install or add prior to implementing the code changes you suggest?
Thanks in advance…
MikeJune 11, 2014 at 6:46 am #277391Hi!
I’m sorry, I thought the product page is created using Woocommerce. What is the widget area that you use for the “product page” or portfolio item page?
Regards,
IsmaelJune 11, 2014 at 7:24 am #277407Hi Ismael,
The widget area for the product page is an ‘Enfold Custom Widget Area’ i’ve created and named ‘Portfolio Sidebar’. It uses the custom menu widget to display the menu for the product pages (which are portfolio items).
I would like to be able to add this same custom menu to the sidebar that displays on post archives.
Let me know if you need any further clarification?
cheers, mike
June 11, 2014 at 7:54 am #277417Hey!
Thank you for the info.
Do the same changes on archive.php above but use this instead:
//get the sidebar echo '<aside class="sidebar sidebar_right three alpha units" role="complementary" itemscope="itemscope" itemtype="https://schema.org/WPSideBar"><div class="inner_sidebar extralight-border">'; dynamic_sidebar('Portfolio Sidebar'); echo '</div></aside>';
Cheers!
IsmaelJune 11, 2014 at 5:43 pm #277622oohhh works slick. thank you very much!!
June 13, 2014 at 6:17 am #278488July 12, 2014 at 3:42 pm #290510Hello Ismael,
I’m kind of looking for the same solution for this question: a sidebar for the archive of product tags.
so far those search results are displayed on a side with no sidebars. I haves edited the widget “sidebar blog” though this is not showing.
Thanks for your advise.
Kind regards,
Anja
July 14, 2014 at 4:41 pm #291138Hey!
Install a plugin like: http://wordpress.org/plugins/display-widgets/
Then add the widgets to the “Displayed Everywhere” widget area and configure the “Show/Hide Widget” options to show these widgets just on the product archive page.Cheers!
PeterJuly 15, 2014 at 2:28 pm #291602Hello Peter,
thanks. that works fine.
A second question: where do I have to go to edit the style of the prod category archive page? I want to enable a right sidebar. The theme options > sidebar layout only offer “Sidebar on Archive Pages”.
Thanks for your help.
Kind regards,
Anja
July 17, 2014 at 6:44 pm #292603Hey!
Unfortunately that would take a bit more customization than we can assist with here on the forums. It would be similar to how I’ve got the example on this docs page for the single product page layout: http://kriesi.at/documentation/enfold/change-woocommerce-single-product-page-layout/
Best regards,
Devin -
AuthorPosts
- You must be logged in to reply to this topic.