[Resolved] Format button in WooCommerce Add to Cart shortcode

Home Forums Support [Resolved] Format button in WooCommerce Add to Cart shortcode

Home Forums Support Format button in WooCommerce Add to Cart shortcode

  • This topic has 10 replies, 2 voices, and was last updated 7 years ago by Leo.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #404765
    Roland

    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

    #404997
    Leo
    Staff
    Customer Support

    Hi there,

    Can you link me to the page? Thanks!

    #405073
    Roland

    Website is not public for now but here is a screenshot of the price/button that the shortcode is producingscreenshot
    https://drive.google.com/open?id=0B-ehNXLv14sUbFpZRXlteE5DZFU

    #405075
    Roland

    Thanks for helping Leo – appreciate it.

    #405145
    Leo
    Staff
    Customer Support

    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!

    #407551
    Roland

    Hi Leo

    I added the link. Can you see it? I’m running the UnderConstruction plugin.

    Cheers

    #407563
    Leo
    Staff
    Customer Support

    Can you turn it off so I can see the site? Thanks!

    #407595
    Roland

    Done – thanks Leo

    #407625
    Leo
    Staff
    Customer Support

    Try this CSS:

    .woocommerce a.button {
        margin-left: 10px;
    }
    #407896
    Roland

    Thanks Leo, that works. Appreciate your help with this.

    #407985
    Leo
    Staff
    Customer Support

    No problem!

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.