Support » Plugin: YITH WooCommerce Wishlist » Add and Remove from wishlist – Same “heart” button

  • Hi,

    My add-to-wishlist-button.php seems like

    <a href="<?php echo esc_url( add_query_arg( 'add_to_wishlist', $product_id ) )?>" rel="nofollow" data-product-id="<?php echo $product_id ?>" data-product-type="<?php echo $product_type?>" class="<?php echo $link_classes ?>" >
        <?php echo $icon ?>
        <span><i class="fa fa-heart" aria-hidden="true"></i></span>
    <img src="<?php echo esc_url( YITH_WCWL_URL . 'assets/images/wpspin_light.gif' ) ?>" class="ajax-loading" alt="loading" width="16" height="16" style="visibility:hidden" />

    How can i change the code with the solution that you already said in below link?

    • This topic was modified 11 months, 3 weeks ago by manojpj.
    • This topic was modified 11 months, 3 weeks ago by manojpj.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author YITHEMES


    Hello there,

    hope you are doing well 🙂

    The solution that we provided in that topic is about add-to-wishlist.php file, not add-to-wishlist-button.php file.

    Please, follow the tutorial exactly how it is explained and you will reach your goal 🙂

    Let us know.

    Have a nice day!



    Hi Yithemes,

    hope you are doing well 😉

    I confirm that your hack is still working very well (December 1, 2019).

    Thanks for that.

    I read that you are working to implement that option natively in one of the next releases. Do you have any news about that?

    I’m afraid, if you do some changes in the js file for some next releases, there will be some compatibility issues… (yeah, I’m paranoiac :p )

    Have a nice day!

    • This reply was modified 11 months ago by dragoweb.
    Plugin Author YITHEMES


    Hi there,
    we have released a new version today! Enjoy with it 🙂 and this feature has been included in the latest version.

    Where I find this settings? Search every where in the plugin settings but can’t find it



    I am using Besa Theme. Wishlist Heart icon is not visible. Please help

    URL :

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.