Site logo

Archived topic

Format button in WooCommerce Add to Cart shortcode

10 replies · Started by Roland on October 17, 2017

Viewing posts 1–11 of 11

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!

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!

This archived topic is closed to new replies.