Question Locked

How to hide add to cart button ?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am trying to hide add to cart button in Magento 2 as i have implemented all the steps that i have seen in the tutorial https://magenticians.com/hide-add-to-cart-guest-users-magento-2/ but still the button is not hidden. Can any one guide me on this ?

5 replies

by lana4joy

You can give the button some class and hide it in your css.

by winssolseo

in css where add to cart button you delete those code

by alexdhub1

1. Use Inline, External or internal CSS for process
2. You can change the color of the button to make it invisible
3. remove it's background link to make it non-workable.

by ruchichouhan

you can CSS to hide and display content.
you will be able to use JavaScript to change and HTML element's CSS properties.

This discussion is closed to new replies.