Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1075270
    turnkeyflyers
    Participant

    Hi, I would like to hide the add to cart hover on related products. I tried css I saw in another thread but it didn’t work. See image below. Thanks,

    #1075665
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #1079548
    turnkeyflyers
    Participant

    Ok, my site is here: http://www.turnkeyflyers.com/shop

    #1079913
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the url of your site. To hide the add to cart buttons from your related products, please add the following css code in the customizer, Appearance > Customize > Custom > CSS

    .woocommerce .upsells li.product .entry-header .button, 
    .woocommerce .related li.product .entry-header .button, 
    .woocommerce .cross-sells li.product .entry-header .button{
        display: none;
    }

    In addition, I have included the upsells and cross sells in the code above. We would loved to know if this has work for you. Thank you.

    #1092391
    turnkeyflyers
    Participant

    Hi, thank you for the reply though the code did not work. I have left the code in there so you can check yourself if you’d like.

    #1092834
    Friech
    Moderator

    Hi There,

    Please update the given css code to this:

    .woocommerce .upsells a.button,
    .woocommerce .related a.button,
    .woocommerce .cross-sells a.button {
    	display: none;
    }

    Hope it helps, Cheers!

    #1094289
    turnkeyflyers
    Participant

    Hi, that doesn’t seem to work either.

    #1094810
    Christopher
    Moderator

    Hi there,

    Please try this code :

    .woocommerce li.product:hover .entry-header .button {
        opacity: 0;
    }

    Thanks.

    #1096358
    turnkeyflyers
    Participant

    That did it, thanks!

    #1096411
    Prasant Rai
    Moderator

    You are most welcome. 🙂

    #1224328
    turnkeyflyers
    Participant

    Hi, I have noticed that this code only removes the button. The link for the add to cart still displays. This makes it confusing to the user who clicks this and then the product is added to the cart. Please help me remove the link as well. You can see this here: https://www.turnkeyflyers.com/shop/

    #1224823
    Rue Nel
    Moderator

    Hello There,

    To completely remove the add to cart button, please add the following css code in the customizer, Appearance > Customize > Custom > CSS

    .woocommerce li.product .entry-header .button {
        display: none;
    }

    We would loved to know if this has work for you. Thank you.

    #1225931
    turnkeyflyers
    Participant

    Yes, that worked. Thank you,

    #1226213
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1075270 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>