Archived topic
Featured images in Page Hero for Woocommerce Categories
11 replies · Started by Marcel on April 17, 2019
Generatepress allows creating Page Hero for Woocommerce Categories (using Display Rules). The problem is I would like to use as a background image the "Featured Image" option, but Woocommerce Product Categories don't use Featured Image, but Thumbnails instead. There is any chance to assign in Page Hero these thumbnails I use in Woocommerce Product Categories instead Featured Images? I would like to do not use Custom Images.
Thanks
Hi there,
try the function provided here:
https://gist.github.com/diggeddy/6478d0b724bf6c5d680e9f0dd25e720c
Thank you so much, David. It works.
Awesome - glad to be of help
Hello David
How could I set up the featured image size for this case? Right now it is a little blurred. Thanks
That function gets the original image attachment so should be the largest size available.... can you provide me a link to a page where i can see the issue?
Thank you for the clarification! I checked up what is happening on my website and discovered that Smush Pro plugin automatically resized all images with the sizes I set on the plugin settings. So this was the reason my images were blurred. Thanks again for your fantastic support!
Glad to be of help.
Hello David,
After one year I come back here with 2 more questions:
1. How to hide the default title of the product category, as long as I used {{post_title}} on the header element I have created;
2. How could I add under the page hero Featured Image an element with a rich category description, included images?
Thank you!
Hi there,
can you raise a new topic - it will make it easier for you and others to fund the answers in the future.
Sure.
Thx