Title: Position button in variable products bug
Last modified: June 27, 2018

---

# Position button in variable products bug

 *  Resolved [dekoningalex](https://wordpress.org/support/users/dekoningalex/)
 * (@dekoningalex)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/position-button-in-variable-products-bug/)
 * Hi,
 * For single products the button is positioned fine, which is right next to the
   add to cart button. However, in variable products the add to wishlist button 
   is placed underneath the add to cart button.
 * How can I fix this?
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fposition-button-in-variable-products-bug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/position-button-in-variable-products-bug/#post-10454292)
 * Hello there,
    hope you are doing well!
 * We have been checking the given product page and seem that all is working fine,
   do you manage to fix the issue?
 * Usually, this issue is due to the theme templates, but you can hide one of the
   buttons adding this CSS rule in your theme. You can do it in “Appearance > Customize
   > Additional CSS”
 *     ```
       form.variations_form div.woocommerce-variation-add-to-cart div.yith-wcwl-add-to-wishlist {
        display: none;
       }
       ```
   
 * Check it and let us know any news.
 * Have a nice day!
 *  Thread Starter [dekoningalex](https://wordpress.org/support/users/dekoningalex/)
 * (@dekoningalex)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/position-button-in-variable-products-bug/#post-10456114)
 * Hi,
 * I don’t want to hide the button, I want it to be positioned right next to the
   add to cart button, which I have set in the options of the plugin. For a regular
   product it is positioned as it should, but for variation products, as the one
   I gave to you in the link, it is positioned underneath the add to cart button.
   The theme is not responsible for this behaviour (according to them), but the 
   plugin is.
 * Please advise.
 * Thanks
    -  This reply was modified 7 years, 11 months ago by [dekoningalex](https://wordpress.org/support/users/dekoningalex/).
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/position-button-in-variable-products-bug/#post-10457636)
 * Hi there!
 * We understand now, we have been testing on the given page adding the next CSS
   rule in the browser and it works properly, can you add it in your theme CSS and
   check if it works fine for you?
 *     ```
       div.product-type-variable div.yith-wcwl-add-to-wishlist {
       margin-left: 15em;
       margin-top: -6.1em;
       }
       ```
   
 * Let us know any news.
 * Have a great day! 🙂
 *  Thread Starter [dekoningalex](https://wordpress.org/support/users/dekoningalex/)
 * (@dekoningalex)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/position-button-in-variable-products-bug/#post-10461844)
 * Hi!
 * Thank you so much for the help, that actually worked. However, there is a situation
   where a product has more than 1 in stock which causes the amount selector to 
   be enabled. This messes op the position of the button… How can I use CSS to select
   the wishlist button for pages that have the amount picker enabled?
 * For example this is the good positioning now: [https://www.poke-spot.com/all-categories/holo/umbreon-holo-japanese-no-197/?v=796834e7a283](https://www.poke-spot.com/all-categories/holo/umbreon-holo-japanese-no-197/?v=796834e7a283)
 * And this is the one with issues: [https://www.poke-spot.com/all-categories/item/choice-band-reverse-holo-121145/?v=796834e7a283](https://www.poke-spot.com/all-categories/item/choice-band-reverse-holo-121145/?v=796834e7a283)
 * Thanks in advance.
 *  Thread Starter [dekoningalex](https://wordpress.org/support/users/dekoningalex/)
 * (@dekoningalex)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/position-button-in-variable-products-bug/#post-10463770)
 * Hi there,
 * Fixed the issue by making amount selector default on every variable product single
   page.
 * Thank you for your assistance!
 * Topic marked as resolved
 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/position-button-in-variable-products-bug/#post-10469399)
 * Hi there,
    Great! 🙂
 * Let us know if you have any doubt or issue.
 * Thank you for contact us.
 * Have a very nice day!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Position button in variable products bug’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/position-button-in-variable-products-bug/#post-10469399)
 * Status: resolved