New Landing How can we help? Atelier Styling add to cart button on product details page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Atelier
  • #287835
    myled
    Member
    Post count: 16

    Hi.
    I need to change background color (among some other things) of add to cart button.
    I’ve tried
    .single_add_to_cart_button, .add_to_cart_button{
    background color: #f00 !important;
    }

    but it doesn’t seem to overwrite inline css.

    Any ideas?

    #287991
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .single_add_to_cart_button, .add_to_cart_button{
    background: #ff0000 !important;
    }

    Thanks
    Mohammad

    #288067
    myled
    Member
    Post count: 16

    Thank you for your reply, but it doesn’t seem to work. Neither in theme’s custom css, nor child theme’s style css.

    #288069
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    It should work 100% . Please provide me login detail to check and resolve.
    Thanks
    Mohammad

    #288082
    myled
    Member
    Post count: 16
    This reply has been marked as private.
    #288104
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have managed to resolve the issue so please check it now.
    Thanks
    Mohammad

    #288109
    myled
    Member
    Post count: 16

    Thank you Mohammad, it appears to work now.
    However I’d like to know which shorthand property causes the issue.

    I also need to change hover style.

    Tried:
    .woocommerce .single_add_to_cart_button.button.alt:hover, .add_to_cart_button:hover {
    border: #000 !important;
    color: #000 !important;
    }
    But no results. I’d be great if you could help with this one as well.
    By the way: I moved custom css to child theme.

    #288284
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code and insert custom css code at Admin > Theme Options > Custom CSS.

    .woocommerce form.cart button.add_to_cart_button:hover, #jckqv .cart .add_to_cart_button:hover, #jckqv .cart .single_add_to_cart_button:hover, #jckqv .cart .yith-wcwl-add-to-wishlist a:hover, .woocommerce .single_add_to_cart_button:hover, .woocommerce .single_add_to_cart_button.button.alt:hover {
        border-color: #000 !important;
        color: #000 !important;
    }

    Thanks
    Mohammad

    #288456
    myled
    Member
    Post count: 16

    Thank you, it does work, however to be honest, I’m not a big fan of custom CSS settings.
    Child theme’s style.css works much better for me, but in this case, it doesn’t seem to work.

    #288622
    David Martin – Support
    Moderator
    Post count: 20834

    If you add it to your child theme, first remove it from Theme Options => Custom CSS.

    If the CSS is not working, be sure your CSS has no errors and validate it here: https://jigsaw.w3.org/css-validator/.

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register