Archived topic
Format button in WooCommerce Add to Cart shortcode
10 replies · Started by Roland on October 17, 2017
Hi
I'm using the WC [add_to_cart id="99"] shortcode. It works fine but there is zero gap between the price text and the "Add to Cart" button. Can I add some styling to the shortcode to add some padding just around the button?
Many thanks
Roland
Hi there,
Can you link me to the page? Thanks!
Website is not public for now but here is a screenshot of the price/button that the shortcode is producing
https://drive.google.com/open?id=0B-ehNXLv14sUbFpZRXlteE5DZFU
Thanks for helping Leo - appreciate it.
Can you edit the original post and add in the website link? Only admins (Tom and I) can see it.
It's much easier that way so I can nail down the CSS.
Thanks!
Hi Leo
I added the link. Can you see it? I'm running the UnderConstruction plugin.
Cheers
Can you turn it off so I can see the site? Thanks!
Done - thanks Leo
Try this CSS:
.woocommerce a.button {
margin-left: 10px;
}
Thanks Leo, that works. Appreciate your help with this.
No problem!