Hi max143,
you can try to use our add_to_wishlist button shortcode
All you have to do, is to find the location in your custom loop where you want to add your “Add to wishlist” button, and add this line of code
<?php echo do_shortcode( '[yith_wcwl_add_to_wishlist product_id="HERE_THE_CURRENT_PRODUCT_ID"]' ) ?>
Let me know if this help you with your task
Have a nice day
Thread Starter
max143
(@max143)
button added, but don’t work, browser show js error “Uncaught Error: Syntax error, unrecognized expression: .add-to-wishlist-?product=custom-wheels”.
how it solve?
Hi again max!
Can you please paste here the code you’re using?
It seems that you’re using product slug in shortcode attribute, instead of the id
Please, let me know
Have a nice day!
Thread Starter
max143
(@max143)
Yes, there was my error, I use slug instead id, now it works! Thank you very much!