Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #676087

    Hi,
    in my Shop Overview Page and Single Product Pages always appear the Sidebar Blog Cat
    I need that in Shop Overview Page appear the Sidebar Shop Overview Page, and in Single Product Pages appear the Sidebar Single Product Pages
    I just build these widgets in Apariencia/Widgets but doesn´t work
    How can i resolve this
    Thanks

    #676684

    Hi
    i can´t resolve the issue i wrote in my previus post.

    In the shop pages the Sidebar Shop Overview Page does´t work, and in the Single Product Pages the Sidebar Single Product Pages does´t not work too.

    That´s because for to have a sidebar in portfolio_entries i this forum I found this:

    Hey!
    Sorry, that’s a portfolio category archives. If you want to set a custom sidebar for that then open up /enfold/sidebar.php and find line 44.
    $custom_sidebar = apply_filters(‘avf_custom_sidebar’, $custom_sidebar);
    And add this beneath it.
    if ( is_taxonomy(‘portfolio_entries’) ) { $custom_sidebar = “test”; }
    And then create a new widget area called “test” in Dashboard > Appearance > Widgets.

    The problem is that this solution override the Sidebar Shop Overview Page and Sidebar Single Product Pages too
    How can i resolve this
    Thanks

    #677130

    Hello,
    I do not get to solve the problem.
    To get a sidebar on category pages, I have applied this solution:

    in /enfold/sidebar.php at line 44:
    $ Custom_sidebar = apply_filters (‘avf_custom_sidebar’ $ custom_sidebar);
    I added this beneath it:
    if (is_taxonomy (‘portfolio_entries’)) {$ custom_sidebar = “Sidebar Blog Cat”; }
    And Then I have set this widget in Dashboard> Appearance> Widgets.

    But this solution overwrites the two WooCommerce sidebar: Shop Single Product Overview Page and Sidebar Single Product Pages both.

    How can i solve this?

    I need that in the category pages Sidebar Blog Cat appears.

    But I need those WooCommerce sidebar also appear on their pages.

    Thank you

    #677946

    Hi,

    Thank you for using Enfold.

    Could you please provide a link to the page / pages with the issue? And post the login details here so that we can check the settings.

    And please refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.

    Best regards,
    Ismael

    #678207

    Hello, thanks for answering

    Several months ago I needed to put a sidebar on category pages.

    I had to apply a solution found at:
    https://kriesi.at/support/topic/enfold-portfolio-categories-sidebar-menu/#post-411168

    For in these pages this sidebar appears categories: Sidebar Blog Cat

    But these days, I installed woocomerce. And the previous solution overrites WooCommerce sidebar and not appear WooCommerce sidebar:

    Shop Single Product Overview Page
    Sidebar Single Product Pages

    Instead Sidebar Blog Cat appears.

    At present, WooCommerce is not visible on the page, because I have not managed to solve this problem.

    I created a couple of test products and the shop page to see the problem.

    On the other hand, how I can make the sidebar WooCommerce products is placed on the right.

    Thank you

    #679821

    Hi,

    Please remove the sidebar.php file from the child theme folder then add this code in the functions.php file:

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

    Best regards,
    Ismael

    #679924

    Hi Ismael,
    thanks for your time.

    I deleted sidebar.php of enfold_child, and I’ve pasted the code you have sent me to the plugin code snippet.
    The right sidebar is already listed in the category pages: Sidebar Blog Cat. Ok. :D
    The sidebar Shop Overview Page appears on the Shop page. Ok. :D

    However, in the pages of each product the sidebar Single Product Pages does not appear. :(
    Instead, Cat Blog Sidebar (the sidebar we have set for category pages) appears on pages of product.
    You can see that in the test products I created.

    I would also like to place the sidebar pages of each product in the right sidebar. Is that possible?

    Thanks for your attention.

    #680532

    Hey!

    Please update the header.php file as well because there are lines of code that are missing in there. And did you modify the config-woocommerce files?

    UPDATE: We updated the header.php file.

    Regards,
    Ismael

    #680659

    Hello
    I have a local installation of Enfold and I compared the files.

    I see no difference between header.php and between enfold / config-wocommerce / config.php
    It is true that remember trying to put the sidebar pages you WooCommerce products on the right side.
    But I was careful to leave everything as it was before, because it did not work these solutions:

    https://kriesi.at/support/topic/enfold-single-product-page-sidebar-will-not-appear-on-the-right/

    I have also disabled the options WooCommerce store, but that does not affect the problem.

    The truth is that on WooCommerce product pages Single Product Pages sidebar does not appear, and this sidebar is at the base of the page, not the right.

    You can see it in the test product:

    I do not understand what happens … :(

    #682422

    Hi,

    The position of the sidebar is correct because it is defined in the template. If you want to place the sidebar in the right or the left of the product content, please follow this post. https://kriesi.at/support/topic/sidebar-rechts-single-page/#post-580220

    What I don’t understand is the incorrect widget area assignment. Please get a fresh copy of the config-woocommerce > config.php file and then override the old one. Or look for this code:

    $avia_config['currently_viewing'] = "shop_single";
    

    Best regards,
    Ismael

    #683079

    Hi Ismael,

    > I have updated all woocommerce plugin.
    > I created a new widget ‘test’ similar to ‘Sidebar Blog Cat’ for the code you sent me:

    add_filter('avf_custom_sidebar', function($custom_sidebar) {
    	if ( is_taxonomy('portfolio_entries') ) { $custom_sidebar = "test"; }
            return $custom_sidebar;
    }, 10, 1);

    > in config-woocommerce > config.php the line

    $avia_config['currently_viewing'] = "shop_single";

    exist. It’s in its place
    But the issue continues
    The code for the sidebar in portfolio_entries owerride
    $avia_config['currently_viewing'] = "shop_single";
    and in the products’ pages the sidebar that appears is `test’ as you can see in:

    http://www.gardenbourguignon.com/shop/orquideas/sustrato-orquideas-bourguignon/

    I don’t konw that can i do

    :(

    • This reply was modified 8 years, 2 months ago by ramiropuig.
    #687348

    Hi,

    Sorry for the delay. We modified the snippet a bit. It is working now.

    http://www.gardenbourguignon.com/portfolio_entries/accesorios-jardin/

    Best regards,
    Ismael

    #687635

    Thanks Ismael,

    Very thankful

    It’s OK now.

    I received the latest update for Enfold.

    If I upgrade, these settings you have done, will remain, right?

    :)

    #688908

    Hi,

    Yes, it should be retained after the update because you’re using a custom snippet plugin. :)

    Best regards,
    Ismael

    #689056

    Ok
    Thanks :D

    #689648

    Hi,

    Great, glad we could help :-)

    Please open a new thread if you should have any further questions or problems.

    Thanks,
    Rikard

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘sidebar in single product pages and shp overview page’ is closed to new replies.