This topic has 4 replies, 3 voices, and was last updated 2 months, 1 weeks ago ago by Andrew Mitchell
I want to add a shortcode under the title of each product that includes the product reviews but I don’t know how to do it, I have managed to do it on the single-product page because I could edit it with Elementor but I also want the reviews to appear under the title of each product in this page for example: https://test.servihogartarraco.com/tienda-recambios/ or this https://test.servihogartarraco.com/ in section “Productos recien llegados”
Dear @Daniel,
We hope this message finds you well. We would like to assist you with the integration of custom code into your website. Please proceed by inserting the following code into the functions.php
file located in your child theme:
add_action('woocommerce_shop_loop_item_title', 'n2t_after_etheme_product_grid_list_product_element_title', 999);
add_action('after_etheme_product_grid_list_product_element_title', 'n2t_after_etheme_product_grid_list_product_element_title', 999);
function n2t_after_etheme_product_grid_list_product_element_title(){
echo do_shortcode('[your-shortcode]');
}
We trust this code will meet your needs. Should you have any further questions or require additional assistance, please do not hesitate to contact us.
Best regards,
The 8Theme Team.
Perfect! Thank you
Dear Daniel,
As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?
Click here to share your valuable perspective: https://themeforest.net/downloads
Your time and trust are highly appreciated!
Best Regards,
The 8Theme Team
The issue related to '‘How can I add a shortcode of my reviews widget under the title of each product?’' has been successfully resolved, and the topic is now closed for further responses