I want to remove add to compare button in Shopify.
I am using PORTO theme for shopify.
I can see there is a option Disable AddToLink , but if I do that Add to Wishlist button is also disappearing.
Can someone please help me with this?
If anyone has knowledge on Shopify or know Liquid.
3
Answers
Go to your theme files, in the assets folder, look for
product.css
orproduct.scss
, and at the very end of that file put.product-view .actions .add-to-links li a.link-compare { display: none; }
.Either this or look for the HTML tag inside the
product.liquid
file and remove it.In your theme file,inside the Assets folder find out the styles.scss file.Inside this file search this line .product-view .product-options-bottom .add-to-cart-box ul li and add below line after this search css line.
.product-view .product-options-bottom .add-to-cart-box ul li:last-child { display: none; }
Also you can add inline css for that one in product page.the file name is product-template.liquid and this file inside section.
In product-template file find out below code and add inline css in li Tag.
Add this one in li tag style="display:none"
It’s work very well ,if you any other issues related this comment it.
In Porto theme, you would check in the
snippetsproduct-grid-item.liquid
file.You would come across something like this in several places:
So you just move the wishlist code outside of the
if
statement…Then just
{% comment %}...{% endcomment %}
or delete whatever you don’t want to keep.