Home › Forums › Themes Support › Claue › Like button position
- This topic has 6 replies, 2 voices, and was last updated 7 years, 3 months ago by kk305.
-
AuthorPosts
-
-
August 9, 2017 at 12:48 pm #7917
Hi, I’ve noticed that the number of product variations affects the placement of the like button. Can this be fixed?
-
August 9, 2017 at 4:19 pm #7922
Hi,
Thank you for report the issue.
You can fix by add custom css in Claue > Theme Option > General Layout > Custom CSS
form.cart {
width: 100%;
}
.cart .yith-wcwl-add-to-wishlist,
.cart.variations_form .yith-wcwl-add-to-wishlist {
right: 0;
}
.single_add_to_cart_button {
width: calc(100% – 175px);
}Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
August 9, 2017 at 10:53 pm #7955
Hi, thanks for your reply. Now the like button is far, like in the second picture on both products. I would like to move it closer to add to cart button. I tried tweaking the code a bit but I’m not a pro so, I’m not sure if I did it the right way.
form.cart {
width: 100%;
}
.cart .yith-wcwl-add-to-wishlist,
.cart.variations_form .yith-wcwl-add-to-wishlist {
left: 300px;
}
.single_add_to_cart_button {
width: calc(100% – 175px);
}I changed right:0 to left:300. Looks ok on desktop but still a bit far on mobile.
-
August 10, 2017 at 1:04 am #7966
Hi,
That is good idea.
You need remove prev code and add only the code below
.cart .yith-wcwl-add-to-wishlist,
.cart.variations_form .yith-wcwl-add-to-wishlist {
left: 300px;
}
@media only screen and (max-width: 800px) {
.cart .yith-wcwl-add-to-wishlist,
.cart.variations_form .yith-wcwl-add-to-wishlist {
left: auto;
right: 0;
}
}Best regards
}Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
August 10, 2017 at 1:40 am #7974
Thanks Harry, this looks good on desktop but still a little off on my s7. I changed right: 0; to right: 50; and now it looks perfect.
-
August 10, 2017 at 8:23 am #7986
Glad to hear you solve your issue. Feel free contact us again if you need more help.
Have a nice day!
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
August 10, 2017 at 9:35 am #7992
Hey Harry, looks like those settings gave different results in different mobile browsers. I tweaked it a little and this one seems to work perfectly across different browsers.
.cart .yith-wcwl-add-to-wishlist,
.cart.variations_form .yith-wcwl-add-to-wishlist {
left: 300px;
}
@media only screen and (max-width: 800px) {
.cart .yith-wcwl-add-to-wishlist,
.cart.variations_form .yith-wcwl-add-to-wishlist {
left: 270px;
}
}
-
-
AuthorPosts
You must be logged in to reply to this topic.