Tagged: x
-
AuthorPosts
-
May 26, 2016 at 10:22 am #1011248
Hi Themeco,
I want to move the Woocommerce ‘add to cart’ button to appear straight after the product title…
At the moment it appears after anything I add to the product description area.
Is there a way to do this?
Thanks so much,
Cheryl
May 26, 2016 at 11:45 am #1011383Hi There,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Thanks,
Joao
May 27, 2016 at 4:26 am #1012677Hi Joao,
My URL is http://www.honestyforyourskin.co.uk, and these are the product pages I am trying to modify (http://honestyforyourskin.co.uk/index.php/shop/)
Thanks,
Cheryl
May 27, 2016 at 6:34 am #1012792Hi Cheryl,
You can add this under Custom > Edit Global CSS in the Customizer.
.woocommerce li.product .entry-wrap { top: calc(100% - 10em); }
Hope that helps.
May 30, 2016 at 11:59 am #1016754Hi Paul – I added the code as you’ve typed, but it didn’t change anything on my product pages…
This is exactly what I’ve typed .woocommerce li.product .entry-wrap {top: calc(100% – 10em);}
I can’t see any differences to your code, so I don’t think I’ve messed that part up…
can you help?
May 30, 2016 at 12:09 pm #1016765Hi There,
I couldn’t find the provided CSS on your website.
Could you please add them again?
.woocommerce li.product .entry-wrap { top: calc(100% - 10em); }
Thank you.
May 30, 2016 at 12:32 pm #1016802Hi there,
It seems that you’re having an issue with your custom CSS. Try adding the above code into the top of of your custom css section.
To find CSS issues, copy all of your custom CSS into an online tool like CSS Lint (http://csslint.net/) and check for errors. CSS won’t parse correctly when you have errors.
Thanks!
June 2, 2016 at 4:39 am #1021804Hi Darshana,
I’ve added the code and checked through the tool you’ve shared, the tool says all is ok, but the ‘add to cart’ button hasn’t moved…
This is the link to the page
http://honestyforyourskin.co.uk/index.php/product/renew-antioxidant-night-oil/
How can I move the add to cart button to below the product price?
Thanks,
Cheryl
June 2, 2016 at 8:23 am #1022119Hi Cheryl,
Please try this code instead.
Add this in Appearance > Customize > Custom > Edit Global Javascript
jQuery( function($) { $('.single-product form.cart').insertAfter('.single-product p.price'); });
Hope that helps
June 2, 2016 at 9:25 am #1022240Hi Paul – omgosh that works! Thankyou so much,
Is there a way that I can have this inline with the quantity box that appears/remove the quantity box?
It looks a little messy having them stacked ( http://honestyforyourskin.co.uk/index.php/product/renew-antioxidant-night-oil/)
June 2, 2016 at 12:27 pm #1022592Hi Cheryl,
Please try to add this in the CSS customizer:
.woocommerce .price, .woocommerce .quantity, .single_add_to_cart_button { float: left; margin: 0 10px 0; } #my-accordion { float: left; margin-top: 15px; } .single_add_to_cart_button { height: 45px; } .woocommerce div.product .summary .price>.amount { top: 8px; position: relative; }
Hope this helps.
June 3, 2016 at 3:18 am #1023825Thanks Jade, that’s worked, but the elements now need spacing a little bit. I’ve included a screen dump & the link…
http://honestyforyourskin.co.uk/index.php/product/renew-antioxidant-night-oil/
how can I add space between the price, quantity and add to cart button?
and, can I adjust the height on the quantity box to match the price & add to cart button?
Thanks so much,
Cheryl
June 3, 2016 at 7:37 am #1024084Hi Cheryl,
To achieve that, you can add this under Custom > CSS in the Customizer.
.single-product .summary.entry-summary p.price { margin-bottom:0; margin-right:15px; line-height:35px; } .single-product .summary.entry-summary .quantity { margin-right:15px; margin-bottom:0; } .single-product .summary.entry-summary .quantity input[type="number"] { height: 35px; }
Hope that helps.
June 6, 2016 at 3:32 am #1027604That works a dream – thanks Paul!
June 6, 2016 at 5:46 am #1027771You’re welcome!
Cheers!
-
AuthorPosts