This topic has 5 replies, 2 voices, and was last updated 4 years, 4 months ago ago by Olga Barlow
Hello,
I’m trying to use a custom function to add something before the product title on the shop page. When using woocommerce_shop_loop_item_title nothing happens. Any other hook on the shop seems to work, but this one doesn’t.
Can you help? Thanks!
In the end i copied the content-product.php to my child theme woocommerce folder and added the custom info there. It works, but i was just wondering if this is a good practice. Could it cause issues ? Thanks.
Hello,
Try et_before_shop_loop_title
.
Regards
That didn’t work well for me. So i copied the content-product.php to my child theme woocommerce folder and added the custom info there.
Is this a good practice? Could in cause any issues in the future?
Thanks.
Hello,
Yes, it’s ok. You can use that in child theme. Just keep it up to date in case file version changes.
Regards
You must be logged in to reply to this topic.Log in/Sign up