[Resolved] Add to cart button broken

Home Forums Support [Resolved] Add to cart button broken

Home Forums Support Add to cart button broken

  • This topic has 5 replies, 2 voices, and was last updated 4 years ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #887126
    Alexandre

    Hi,

    I am not sure if it is the recent update from WooCommerce or GP Premium that causes my issue.

    The Add to cart button and qty field are completely whacked and I really don’t know what to do about that and where to look for to get it right again.

    All products have the same issue.

    Thanks for your support

    #887127
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    It looks like this custom CSS you have added is causing the issue:

    @media (min-width: 768px) {
        .woocommerce div.product form.cart div.quantity, 
        .woocommerce div.product form.cart .button {
            float: none;
            display: inline-block;
        }
    }

    If you remove that it should look better.

    Let me know ๐Ÿ™‚

    #887163
    Alexandre

    Thanks Tom,

    I have added this custom CSS to align center the field, button, price and categories on mobile view.

    It seems that there has been design changes on the button. it does not display as it used to be and my custom CSS does not work anymore.

    Do you have any clue how I can align center this whole block, only on mobile dispaly ?

    Thanks

    #887180
    Tom
    Lead Developer
    Lead Developer

    Give this a shot:

    @media (max-width: 768px) {
        .product .entry-summary {
            text-align: center;
        }
    
        .woocommerce div.product form.cart {
            justify-content: center;
        }
    }
    #887182
    Alexandre

    Perfecto !

    Thanks a lot

    #887184
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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