Title: moving the button
Last modified: September 14, 2020

---

# moving the button

 *  [papon1144](https://wordpress.org/support/users/papon1144/)
 * (@papon1144)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/moving-the-button/)
 * 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](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/moving-the-button/#post-13422746)
 * 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.

 * ![](https://ps.w.org/yith-woocommerce-wishlist/assets/icon-128x128.gif?rev=3129302)
 * [YITH WooCommerce Wishlist](https://wordpress.org/plugins/yith-woocommerce-wishlist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-wishlist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/moving-the-button/#post-13422746)
 * Status: not resolved