Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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

    #277357

    Hey 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!
    Ismael

    #277359

    Hi 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…
    Mike

    #277391

    Hi!

    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,
    Ismael

    #277407

    Hi 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

    #277417

    Hey!

    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!
    Ismael

    #277622

    oohhh works slick. thank you very much!!

    #278488

    Hey!

    Glad it worked. If you have any questions, let us know. :)

    Regards,
    Ismael

    #290510

    Hello 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

    #291138

    Hey!

    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!
    Peter

    #291602

    Hello 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

    #292603

    Hey!

    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

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