-
AuthorPosts
-
December 15, 2016 at 2:26 pm #724859
Hi there,
I’m using the latest version of WP, WC and Enfold.
In my shop I’ve created various categories with banner images, which works nicely. But when I start filtering my products in one category the banner image disappears completly. I use the image as a fullwidth page banner. How can I change it to display the banners contantly?
Thanks in advance.
JoschaDecember 20, 2016 at 8:23 am #726453Hey Joscha,
Thank you for using Enfold.
It’s certainly a bug in the “banner” function. Could you please provide the WP and FTP details so that we can do a few tests?
Best regards,
IsmaelJanuary 4, 2017 at 12:57 pm #729372Hey Ismael,
after the last update of Enfold 3.8.4, I made this morning some things improved. Now the category-banner changes to the normal shop-banner when activating some filters instead of disappearing.FYI I use a child-theme and added some changes to the filters and actions in the function.php
Thanks in advance,
Joscha
January 9, 2021 at 10:09 am #1271201Hi there,
i have the same problem using the enfold theme 4.7.5. is there a working so that the image defined for a category is displayed after filtering products and not the standard store banner?
Best regards,
KaiJanuary 11, 2021 at 4:41 am #1271463Hi,
@kisrael: We are not sure or we do not remember if the existing code for the banner has been modified to change this behavior. Where can we see the issue? Please note that the latest version is 4.7.6.4, so you may need to update the theme first.Best regards,
IsmaelJanuary 12, 2021 at 4:16 pm #1271934Hi Ismael,
the problem arises from the function avia_woocommerce_big_cat_banner located in the config.php located in the config-woocommerce folder. Instead of the taxonomy “product_cat”, “pa_XYZ” is passed when filtering is activated. To solve this problem, I check the GET variables and set
$wp_query->query_vars['taxonomy'] = "product_cat"
if the string “filter_” occurs in a GET variable. That solves the misbehavior of the template for me.Maybe it helps someone else or maybe there is a more elegant solution
Many greetings
KaiJanuary 15, 2021 at 8:23 am #1272608Hi,
Thank you for the info.
Glad to know that you are able to find a working solution. Are you using the pre_get_posts hook for this? Posting the actual solution in the forum will surely help a lot of users who might be experiencing the same issue on their sites.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.