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

    #726453

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

    #729372

    Hey 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

    #1271201

    Hi 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,
    Kai

    #1271463

    Hi,


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

    #1271934

    Hi 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
    Kai

    #1272608

    Hi,

    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

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