alter product short description in archive/shop
-
Hi,
I have enabled hover content under product styles and it displayes correctly the short description on hover.
I would like to add extra content to it based on product meta.
is there a hook for it?
moreover i would like to add extract content above it – under price
thank you in advance,
Menelaos
-
This topic was modified 1 week ago by
arty.
Hello,
Navigate to Theme Settings > Product Archive > Product Styles, select the “Show Summary on Hover” or “full width” style and set “Hover Content” to Additional Information. This will allow additional content to appear on archive pages.
Make sure the attributes are properly configured within each product for them to be displayed correctly. https://ibb.co/hFb3kmhn
If you have any questions please feel free to contact us.
Best Regards,
Yes, I already did.
However I would like to add custom content programmatically to it.
How can I?
Hello,
Unfortunately, it is not possible. The HTML structure does not allow solving it. Such modification requires complicated WooCommerce code customization, which is not covered by our support.
Best Regards,
i understand.
could you please point me the right direction instead?
I would like to add custom content to it by modifying or overriding the source.
please let me know where the code is located
thank you
Hello,
The woocommerce/content-product-fw-button.php file is responsible for the hover effect on the product grid. You can edit the theme file at your own risk.
Best Regards,