• Resolved 0108daniel

    (@0108daniel)


    I want to alight and center the ‘add to cart’ button.
    Now the button is on the left side of the products instead of centered in the middle.
    Also 1 button is higher/lower then the other one.
    First priority is to center the button in the middle.
    To give a exaple, this is how it looks now: https://www.model-kits.nl
    The buttons are on the left side instead of centered.
    I have the Astra theme.
    No CSS is working.
    I tried:

    .single.woocommerce div.product form.cart .button {
    margin: auto;
    flex: 1; /* remove this if you do not want to fill the space */
    }

    and

    #top.single-product form.cart {
        display: flex;
        float: none;
        align-items: center;
        justify-content: center;
    }
    
    #top.single-product form.cart .quantity, 
    #top.single-product form.cart .quantity * {
        margin-bottom: 0;
    }

    and

    .woocommerce ul.products li.product {
    display: block;
    }

    Anyone can help me with it?
    I don’t use plugin that conflict with buttons or something.
    Hope someone can help me.

Viewing 1 replies (of 1 total)
  • Plugin Support Ilia .a11n

    (@iliadio)

    Hi there,

    The best way to proceed with this is to reach out to your theme authors and ask for their help. You can get in touch with them here: https://wpastra.com/contact/

    The WooCommerce support team is not able to assist with theme-related customizations, however, I will leave this thread open in case someone else has any suggestions about this.

Viewing 1 replies (of 1 total)
  • The topic ‘Align and center ‘add to cart’ button’ is closed to new replies.