Home › Forums › WoodMart support forum › Mobile single product help
Mobile single product help
- This topic has 14 replies, 2 voices, and was last updated 3 years, 10 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
April 6, 2021 at 8:48 pm #279420
ipcomParticipantHow can i change the size of the size attributes(name, swatches name), the size of the quantity box along with buy button and move the “x clear” next to size attributes (not below them)? I am providing a screenshot.
Attachments:
You must be logged in to view attached files.April 6, 2021 at 8:49 pm #279422
ipcomParticipantI want to change this only on mobile.
April 7, 2021 at 9:00 am #279551
Aizaz Imtiaz AwanKeymasterHello,
I saw the screenshot you attached. Please try adding the following Custom CSS in the Custom CSS for Mobile area under Theme Settings >> Custom CSS.
.product-design-default .variations_form .reset_variations { position: relative; bottom: 0; left: 5px; } body .single_add_to_cart_button { width: 60%; }
Best Regards
April 7, 2021 at 9:08 am #279553
ipcomParticipantI tried the code about the size of the add to cart button, but it doesn’t work. Nothing changes.
April 7, 2021 at 9:18 am #279555
ipcomParticipantAlso, i want to make the quantity box and the add to cart button bigger, not wider.
April 7, 2021 at 12:05 pm #279633
Aizaz Imtiaz AwanKeymasterHello,
Please replace the previous Custom CSS with the following in the Custom CSS for Mobile area under Theme Settings >> Custom CSS.
button.single_add_to_cart_button.button.alt { height: 70px; font-size: 25px; } div.quantity input[type=button], div.quantity input[type=number] { height: 70px; font-size: 25px; }
Best Regards
April 7, 2021 at 12:12 pm #279640
ipcomParticipantGreat that worked. Now, how can i center the size swatches with equal blank space between the add to cart button and the size guide in mobile? I have attached a screenshot.
Attachments:
You must be logged in to view attached files.April 7, 2021 at 1:06 pm #279709
Aizaz Imtiaz AwanKeymasterHello,
Please try adding the following Custom CSS in the Custom CSS for Mobile area under Theme Settings >> Custom CSS.
.product-design-default .variations_form.variation-swatch-selected .variations { margin-bottom: 20px; }
Regards.
Xtemos StudiosApril 7, 2021 at 2:36 pm #279759
ipcomParticipantNow, how can i make the add to cart button wider on mobile and bring the tab section closer. I have provided a screenshot.
Attachments:
You must be logged in to view attached files.April 8, 2021 at 7:03 am #279955
Aizaz Imtiaz AwanKeymasterHello,
I saw the screenshot you attached.
Please try adding the following Custom CSS in the Custom CSS for Mobile area under Theme Settings >> Custom CSS.
body .single_add_to_cart_button { width: 60%; } .woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled { margin-bottom: -15px; }
Regards.
Xtemos Studios.April 8, 2021 at 8:41 am #280008
ipcomParticipantNope. It doesn’t change anything. The button stays the same. Neither the button is wider, nor it’s moving to the bottom.
April 8, 2021 at 9:18 am #280028
ipcomParticipantI only need the code which makes the button wider.
April 8, 2021 at 11:40 am #280126
Aizaz Imtiaz AwanKeymasterHello,
I have visited your website and the add to cart button is already wide.
Screenshot for Clarification: https://prnt.sc/117bbfn
Please clear cache and check back.
Regards.
Xtemos StudiosApril 8, 2021 at 11:43 am #280129
ipcomParticipantYes, if you resize the window on desktop it is. But, i am trying in an Iphone Safari and it’s still not wide. And i don’t have any cache plugins enabled.
April 8, 2021 at 1:01 pm #280183
Aizaz Imtiaz AwanKeymasterHello,
Please replace the previous Custom CSS with the following then clear cache and check back.
.product-type-simple form.cart, .woocommerce-variation-add-to-cart { display: flex; } .product-type-simple form.cart > button, .woocommerce-variation-add-to-cart > button { flex-grow: 1; }
Regards.
Xtemos Studios -
AuthorPosts
- You must be logged in to create new topics. Login / Register