Okay
  Public Ticket #2251080
WooCommerce product link
Closed

Comments

  •  1
    Willem Vogelaar started the conversation

    Hi and thanks for excellent support!

    I have a product (membership) I would like to disable the link to the product page for a certain product. I use the WooCommerce product element. On this element there are actually two different links: one is linking to the product page, the other is putting the product in the basket. Is it possible to disable the link to the product page but only allow the link to the basket?

    Thanks.

  •  8,992
    Tahir replied

    Hey,

    Please provide the page url so that i can write up the custom css for whats possible.

    Thanks


    ThemeNectar Support Team 

  •  1
  •  8,992
    Tahir replied

    Add this into the Custom CSS box located in your Salient Options panel (All custom css provided is tested in the Live Browser so it will work as intended . If you cant see any changes make sure there is no red cross in the Custom CSS Box as that syntax error would cause all css below it to not show up on the Frontend):

    .woocommerce ul.products li.product a:not(.ajax_add_to_cart) {
        pointer-events: none !important;
        visibility: hidden !important;
    }
    .woocommerce ul.products li.product a >img {
        visibility: visible !important;
    }

    Thanks


    ThemeNectar Support Team 

  •   Willem Vogelaar replied privately