
-
AuthorPosts
-
September 17, 2015 at 11:47 pm #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!
September 18, 2015 at 9:37 am #505299Hey Chad,
Could you provide us with a link to the site in question so that we can take a closer look please?
Best regards,
RikardSeptember 18, 2015 at 6:10 pm #505721Sure, I have added it to the private section of this reply.
September 21, 2015 at 9:25 am #506287Hey!
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!
IsmaelSeptember 21, 2015 at 5:11 pm #506537Hello 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
September 22, 2015 at 3:41 pm #507136Hi!
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,
ElliottSeptember 22, 2015 at 11:21 pm #507414I 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.
September 23, 2015 at 2:23 pm #507791Hi!
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!
AndySeptember 23, 2015 at 7:08 pm #508054Hello,
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
September 25, 2015 at 4:38 pm #509141Hey!
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!
AndySeptember 25, 2015 at 5:52 pm #509215I 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…
September 29, 2015 at 4:18 pm #510825Hey!
“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 -
This reply was modified 9 years, 9 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.