Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #505166

    Hello,

    We noticed that the category image and description only shows on the first page when a category (ie. archive) of products page is paginated. When we click on a pagination link for page two and beyond, the image and description disappear. How would I make them stay at the top for all paginated pages?

    Which template file to add it to, with a code snippet would be helpful, or where to go in the settings.

    Thanks!

    #505299

    Hey Chad,

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #505721

    Sure, I have added it to the private section of this reply.

    #506287

    Hey!

    You can enable the theme’s shop banner. Go to Enfold > Shop Options panel then enable the “Enable Banner for product category pages”. Edit the product category, look for the Enfold Category Styling settings then set it to the second option.

    Cheers!
    Ismael

    #506537

    Hello Ismael,

    I looked into your response, but I don’t believe that is what I am after. To clarify: I’m not trying to display a shop banner on category pages. Rather, I am trying to display the category-specific image and description. They are already showing on the page to start out, but disappear when I go to paginated pages beyond page 1. My question is how can I make the category-specific image and description continue to display on all paginated pages beyond the first page?

    Thanks

    #507136

    Hi!

    Try changing line 734 in the /enfold/config-woocommerce/config.php file from this.

    if(avia_is_dynamic_template() || is_paged() || is_search() ) return false;
    

    To this.

    if(avia_is_dynamic_template() || is_search() ) return false;
    

    Regards,
    Elliott

    #507414

    I don’t like to edit the parent theme, so I attempted to copy that entire function to functions.php in my child theme. However, that results in the following error:

    Fatal error: Cannot redeclare avia_woocommerce_overview_banner_image() (previously declared in… REMOVED PATHS …wp-content/themes/enfold/config-woocommerce/config.php on line 775

    How would I make an edit without hacking the parent theme?

    • This reply was modified 9 years, 9 months ago by Chad.
    #507791

    Hi!

    refer to this answer: https://kriesi.at/support/topic/does-child-theme-read-woocommerce-configconfig-php/#post-234151

    However, would be best to ask WooCommerce support about it, as they know their plugin best.

    Cheers!
    Andy

    #508054

    Hello,

    I think that is the correct way to override one of the Enfold parent theme functions in config-woocommerce/config.php– at least I am convinced it is.

    However, it seems the function that Elliot originally recommended doesn’t fire anyway in my case, so I don’t think we are overriding the correct spot yet. Perhaps that function only fires when there is a category banner image, and I’m just using the category thumbnail field with category styling set to Default. Any ideas?

    Thanks

    #509141

    Hey!

    please ask WooCommerce Support about it, as they know their plugin best.

    Let us know in a new ticket if you have some more questions directly related to the theme and we are happy to assist you.

    Cheers!
    Andy

    #509215

    I was pretty sure that the behavior I am experiencing was due to how your theme is outputting the category pages, but I guess I can try the Woo people…

    #510825

    Hey!

    “Perhaps that function only fires when there is a category banner image, and I’m just using the category thumbnail field with category styling set to Default.”

    Yes, that is possible. Make sure you set the banner image in Dashboard > Enfold > Shop Options or for the product categories then make sure the “Enfold Category Styling” is set to “Display product image and description as fullwidth page banner”.

    Let us know how the Woocommerce support goes.

    Best regards,
    Elliott

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