• Hi, i have been doing some practice in making themes and i need a solution with whislist. Is there a way to implement whislist function to a custom button that i created like any function that will bring out the yith whislist functionalities on that button. usually using yith plugin the heart icon appears after the add to cart link but i need it beside so i want to know if theres function to do that

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there

    I suggest you not to replace Add To Wishlist button, since our template accounts for many different customer configurations, and usually the best option for theme developers is just to customize original template

    In your case, if you just want to move ATW button to other locations, you won’t even need to override the template
    You can print ATW button wherever you need it just by doing what follows

    echo do_shortcode( '[yith_wcwl_add_to_wishlist product_id="123"]' );
    

    Of course, I’m assuming
    1. you’re in a PHP template, so you can add PHP code
    2. you will replace 123 with the current product id; if you’re adding this button in a product page, you won’t even need this parameter at all

    This way you can move ATW virtually anywhere, without losing any of the functionalities that we offer with our plugin

Viewing 1 replies (of 1 total)
  • The topic ‘moving the button’ is closed to new replies.