Home › Forums › WoodMart support forum › Add to Cart Button Width
Add to Cart Button Width
- This topic has 13 replies, 2 voices, and was last updated 1 year, 11 months ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
January 4, 2023 at 7:08 am #432960
IanBParticipantHow do I adjust my add to cart button width so it stays in line with the quantity selector and expands 100%, I tried changing the width to 100% using CSS, but the button drops to the line below it and doesnt stay inline with the quantity selector ?
Thanks
January 4, 2023 at 1:45 pm #433040
Aizaz Imtiaz AwanKeymasterHello,
Sorry for the inconvenience caused.
Could you please share some useful Screenshots and the Page URLs so that we can check this concern specifically on your Site and assist you accordingly in this regard.
Best Regards
January 5, 2023 at 11:51 am #433280
IanBParticipantLink attached
January 5, 2023 at 4:02 pm #433355
Aizaz Imtiaz AwanKeymasterHello,
According to the available space here for the Add to Cart button, please try using the below Custom CSS code and paste it to Dashboard >> Theme Settings >> Custom CSS >> Global CSS section:
.product-image-summary .single_add_to_cart_button { min-width: 75% ; }
And try the following one under the Dashboard >> Theme Settings >> Custom CSS >> Custom CSS for mobile area:
.product-image-summary .single_add_to_cart_button { min-width: 100% ; }
Hope this works out for you !
Best Regards
January 5, 2023 at 7:07 pm #433416
IanBParticipantHello
The desktop CSS code you shared does not work, it pushes the add to cart button below the quantity selector instead of expanding the width alongside the quantity selector ?
Image attached
Attachments:
You must be logged in to view attached files.January 5, 2023 at 7:09 pm #433418
IanBParticipantIn fact the mobile CSS code doesn’t work also ..
January 6, 2023 at 9:57 am #433499
Aizaz Imtiaz AwanKeymasterHello,
Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check these concerns on your Site and help you out accordingly.
Best Regards
January 6, 2023 at 10:22 am #433506
IanBParticipantStaging site details provided
January 6, 2023 at 3:04 pm #433585
Aizaz Imtiaz AwanKeymasterHello,
Your issue has been solved. I have added the below custom CSS code in Theme options >> Custom CSS >> Global CSS and CSS for mobile section respectively:
.product-image-summary .single_add_to_cart_button { min-width: 75% !important; } .product-image-summary .single_add_to_cart_button { min-width: 100% !important; }
Best Regards.
January 6, 2023 at 3:23 pm #433590
IanBParticipantStill doesn’t display on desktop or display on mobile correctly ?
Attachments:
You must be logged in to view attached files.January 6, 2023 at 3:24 pm #433592
IanBParticipantI checked the staging site also, doesn’t display correctly..
Tried on live site entering css, still the same.
January 7, 2023 at 10:52 am #433722
Aizaz Imtiaz AwanKeymasterHello,
Sorry for the delay.
Unfortunately, there is no option to show the according in the way you want. I have adjusted on the site now. Please see the button in desktop and mobile both on the staging site. I have added the below custom CSS code in your staging site.
.product-image-summary .single_add_to_cart_button { margin-bottom: 10px; display: block; width: 100%; } .woocommerce-variation-add-to-cart{ display:flex; } .product-image-summary .single_add_to_cart_button { flex-grow: 3; } form.cart{ display:flex; }
Best Regards.
January 7, 2023 at 11:47 am #433728
IanBParticipantStill doesnt show correctly
I have attached the images below one showing how it shows after you have added the css code above.
The other I have edited in photoshop to show the quantity selector and button on the same line, so it’s impossible to achieve the quantity selector and add to cart button on the same line to fill the line width ??
Attachments:
You must be logged in to view attached files.January 7, 2023 at 4:39 pm #433767
Aizaz Imtiaz AwanKeymasterHello,
As I already told you that this is not possible to show the button as you want to. When we will show the full width of the add to cart button it will change the row and show under the quantity on both Desktop and Mobile.
For more changes, It requires customizations and this is beyond our limitations and support policy.
Regards.
Xtemos Studios -
AuthorPosts
- You must be logged in to create new topics. Login / Register