Tagged: sidebar, woocommerce
-
AuthorPosts
-
January 14, 2022 at 1:14 pm #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 youJanuary 15, 2022 at 9:58 pm #1335719Hey 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,
MikeJanuary 16, 2022 at 9:49 pm #1335778This reply has been marked as private.January 17, 2022 at 12:38 am #1335800Hi,
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,
MikeJanuary 17, 2022 at 11:30 am #1335838Hi,
sure. How do I enable the theme editor?January 17, 2022 at 11:38 am #1335840Hi,
done. I eventually figured out how to enable it ;)January 18, 2022 at 5:10 am #1335949Hi aledef,
We’re glad to hear that :)
Just let us know if you need further assistance.Best regards,
NikkoJanuary 18, 2022 at 1:10 pm #1336033Hey,
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.
January 19, 2022 at 8:28 am #1336133Hi,
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,
IsmaelJanuary 19, 2022 at 12:31 pm #1336177Hi,
the dev site is actually up and working, it must have been a temporary issue.January 21, 2022 at 8:14 am #1336496Hi,
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,
IsmaelJanuary 21, 2022 at 2:37 pm #1336544Hi,
thanks for your efforts, I really appreciate that!- This reply was modified 2 years, 11 months ago by aledef.
January 21, 2022 at 2:40 pm #1336547I 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,
AlessioJanuary 24, 2022 at 3:33 am #1336802Hi,
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,
IsmaelJanuary 25, 2022 at 12:24 pm #1337048Hi,
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,
AlessioJanuary 26, 2022 at 4:33 am #1337197Hi,
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,
IsmaelJanuary 26, 2022 at 12:38 pm #1337253Hi,
I opened a ticket with my hosting provider.
Can you please provide your IP address?January 28, 2022 at 11:47 am #1337680January 31, 2022 at 2:55 pm #1338055This reply has been marked as private.February 2, 2022 at 7:10 am #1338388Hi,
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,
IsmaelFebruary 21, 2022 at 3:25 pm #1341667Hi,
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?
February 22, 2022 at 4:07 am #1341739Hi,
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,
IsmaelFebruary 22, 2022 at 7:10 pm #1341829Hi,
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
February 23, 2022 at 1:51 am #1341888Hi,
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 -
AuthorPosts
- The topic ‘Sidebar not showing up on WooCommerce category page’ is closed to new replies.