Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #1335579

    Hi,
    I’m using Enfold since 10 years, so I’m an advanced user.

    I’m trying to have sidebar visible on WooCommerce category page, but it does not show up.

    I have set “Right sidebar” in “Theme Options > Sidebar Settings” for Archives, Blog, posts and pages but it only shows up in pages and posts, not in WooCommerce product pages nor WooCommerce category pages. I also tried changing it to left sidebar, but no joy.

    Enfold, WP and WooCommerce are up-to-date, no other plugin is active and functions file in my child theme is clean.

    Any help?
    Thank you

    #1335719

    Hey aledef,
    Thank you for your patience, I see that you don’t have a sidebar, but selecting “Right sidebar” in “Theme Options > Sidebar Settings” for Archives on my demo site is working for me so I’m not sure what is different on your site, please include an admin login in the Private Content area so we can investigate further.

    Best regards,
    Mike

    #1335778
    This reply has been marked as private.
    #1335800

    Hi,
    Thanks for the test site, I see that the sidebar shows in post categories, posts, pages, products, but not product categories?
    I tried switching to your parent theme and that didn’t help, but when I exported your content to my localhost the sidebar worked on product categories.
    I tried updating your parent theme but that didn’t help either, so I’m stumped.
    I’ve asked the rest of the team if they have any ideas, can you enable the theme editor so we can investigate further?

    Best regards,
    Mike

    #1335838

    Hi,
    sure. How do I enable the theme editor?

    #1335840

    Hi,
    done. I eventually figured out how to enable it ;)

    #1335949

    Hi aledef,

    We’re glad to hear that :)
    Just let us know if you need further assistance.

    Best regards,
    Nikko

    #1336033

    Hey,
    it looks like you misunderstood!
    I just figured out how to enable the theme editor as you asked me.

    The issue with the sidebar is still there.

    #1336133

    Hi,

    Sorry for the confusion. Did you put the dev site down? We tried to access its dashboard but the site is not loading at all. We also tried to access the live site but it just redirects to the home page.

    Best regards,
    Ismael

    #1336177

    Hi,
    the dev site is actually up and working, it must have been a temporary issue.

    #1336496

    Hi,

    Thank you for the update.

    The site is now accessible but we cannot yet figure out why the sidebar is not displaying in the product category pages. Can we access the file server? We would like edit the taxonomy-product_cat.php file template and maybe override and place it in the child theme directory. Please post the FTP details in the private field.

    Best regards,
    Ismael

    #1336544

    Hi,
    thanks for your efforts, I really appreciate that!

    • This reply was modified 2 years, 8 months ago by aledef.
    #1336547

    I just changed “Site Address (URL)” in Settings->General to “https://slp.defeudis.it” (instead of “https://slp.defeudis.it/slp”) to match original website config, so if you have issues accessing please clear browser cache.

    Best regards,
    Alessio

    #1336802

    Hi,

    Thank you for the update.

    Unfortunately, the FTP account above is not working. Please check it carefully or provide another login account, and make sure to place it the private field.

    Best regards,
    Ismael

    #1337048

    Hi,
    I checked it carefully and the FTP account is perfectly working.
    I can login without problems.
    Please re-check your settings and try again.

    Best regards,
    Alessio

    #1337197

    Hi,

    It is still not working on our end. We tried both TLS and insecure connections. There might be a country or address restrictions to the FTP account. Please check the screenshot in the private field.

    Best regards,
    Ismael

    #1337253

    Hi,
    I opened a ticket with my hosting provider.
    Can you please provide your IP address?

    #1337680

    Hi,

    (see private field)

    Best regards,
    Ismael

    #1338055
    This reply has been marked as private.
    #1338388

    Hi,

    Thanks for the update.

    The sidebar is now displaying properly in the category pages. We had to temporarily modify the avia_woocommerce_before_main_content function in config-woocommerce/config.php and adjusted the condition around line 911.

    if(is_singular() || is_product_category()) {
    
    		$result = 'sidebar_right';
    		$avia_config['layout']['current'] = $avia_config['layout'][$result];
    		$avia_config['layout']['current']['main'] = $result;
    
    }
    

    We added the is_product_category function to set the sidebar layout for the category pages. For some reason, this is working correctly on our end even without the modification, so we will have to investigate further.

    Best regards,
    Ismael

    #1341667

    Hi,
    thank you for this workaround.

    Will this code be added to next versions of Enfold or should I add it each time Enfold is updated?

    #1341739

    Hi,

    Thank you for following up.

    You can actually override the avia_woocommerce_before_main_content function in your child theme. As we have said previously, this part is working correctly on our installation, so the issue is probably cause by a plugin or by a custom modification in your installation. The sidebar in the product category page displays fine on a fresh Enfold install with or without the modification above.

    Best regards,
    Ismael

    #1341829

    Hi,
    I eventually figured out what was causing this issue.
    It is not due to a plugin or by a custom modification on my installation.

    “Sidebar Settings” dropdown was set to “No sidebar” in the default WooCommerce Shop page.
    That’s all.

    This setting affects Shop page and product categories.
    Changing it to “Default sidebars” solved the issue.

    It is actually quite a powerful setting, and can be very useful… unless you forget it :)

    Alessio

    #1341888

    Hi,
    Glad to hear that you have this sorted out, thanks for sharing your solution, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 24 posts - 1 through 24 (of 24 total)
  • The topic ‘Sidebar not showing up on WooCommerce category page’ is closed to new replies.