Home Forums WoodMart support forum Extend Width of ADD TO CART Button

Extend Width of ADD TO CART Button

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #352645

    rattan
    Participant

    Dear Xtemos,

    I am wishing to extend the width of the Add to Cart button as illustrated in my attachment.

    I need the width to extend all the way across.

    Please can you help.

    Attachments:
    You must be logged in to view attached files.
    #352651

    rattan
    Participant

    .

    #352669

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    Please add this code to the Theme Settings > Custom CSS > Global:

    .product-image-summary .single_add_to_cart_button {
       display:block;
    	min-width:100%;
    }

    Best Regards

    #352814

    rattan
    Participant

    Thanks for you reply but that is not what im trying to achieve unfortunately.

    I need the “add to cart” button to be inline with the “quantity box”.

    Your code does increase the width but it drops the “add to cart” button to a new row bellow the “quantity box”.

    #352989

    Hello,

    Please try to replace the provided code with this one:

    ` .product-image-summary .cart {
    display: flex;
    }
    .product-image-summary .single_add_to_cart_button {
    flex-grow: 1;
    }`

    Best Regards

    #353216

    rattan
    Participant

    hi, that didn’t work unfortunately

    Attachments:
    You must be logged in to view attached files.
    #353322

    Hello,

    Please provide me URL for each type of product you use on the site.

    I will provide common CSS for all.

    Best Regards

    #353504

    rattan
    Participant

    Thanks Elise for your reply.

    All my product pages are as bellow:

    #353771

    rattan
    Participant

    any updates?

    #354043

    rattan
    Participant

    can someone please help out. it has been nearly 4 days now and i still haven’t managed to achieve what i want.

    thanks

    #354058

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    .product-type-variable .woocommerce-variation-add-to-cart-disabled {
    display: flex;
    }
    .product-type-variable .product-image-summary .single_add_to_cart_button {
    flex-grow: 1;
    }
    .product-type-simple .product-image-summary .cart {
    display: flex;
    }
    .product-type-simple .product-image-summary .single_add_to_cart_button {
    flex-grow: 1;
    }

    Best Regards

    #354059

    rattan
    Participant

    Thanks Elise,

    worked perfectly

    #354221

    You are welcome! We are here to help.

    Wish you a wonderful day!

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘Extend Width of ADD TO CART Button’ is closed to new replies.