I need to add shortcode to the mobile popup of the product page
-
I need to add shortcode to the mobile popup of the product page, when selecting from the category page (you must be on mobile to see this popup)
http://www.indycellular4less.com
I cant find where to access this
Hello,
Could you kindly provide the page URL and screen of the popup, I cannot catch the problem, also please provide the screen that I should press to call the popup.
Best Regards
Hi, here is URL (you must be on mobile, not just inspecting mobile from pc to get popup)
https://www.indycellular4less.com/shop/
and here is a screen recording of the popup.
https://drive.google.com/file/d/1cC1hoxFBBJJhyAo88Oq_kvQRnlikzby0/view?usp=sharing
We want to add shortcode to this popup to mention a financing offer.
The shortcode is [no_credit_needed_text_link]
Hello,
Please add this code to the functions.php of the child theme:
add_action( 'woocommerce_single_product_summary', function () {
if ( function_exists( 'woodmart_loop_prop' ) && woodmart_loop_prop( 'is_quick_view' ) ) {
echo do_shortcode( '[no_credit_needed_text_link]' );
}
}, 50 );
If you have any questions please feel free to contact us.
Best Regards
That worked, thank you. We can close this ticket now, appreciate your help.
You are welcome!
Wish you a wonderful day!
The topic ‘I need to add shortcode to the mobile popup of the product page’ is closed to new replies.