How to set active class to magento2.1 wish-list button on product page?
I mean that, when i go to product page, if i marked that product to my wish-list before, just shows already added to wish-list or change the color of button.
Change Wishlist Button Color on Magento 2.1
magento-2.1magento2wishlist
Best Answer
Copy the following file:
to you desired theme like below:
and add the following code to your theme's wishlist.phtml like below:
Use the following css for color change or you can add any other color according to your requriement and add it to your respective css or less file.