I Tried this code but changes all the image containers of theme from grayscale to colour on mouse hover:
#top .avia-image-container img { filter: grayscale(100%);
-webkit-filter: grayscale(100%);
filter: gray;
-webkit-transition: all .6s ease;}
#top .avia-image-container img:hover { filter: grayscale(0%);
-webkit-filter: grayscale(0%);
filter: none; }
I want to change only the container images of an specific page with id: 3257.
Could you help me?
Thanks very much.
PS: I’m working in local.
Monring,
Each page has a class that corresponds to the page ID.
You can use this class as follows…
.page-id-3257 .avia-image-container img { filter: grayscale(100%);
-webkit-filter: grayscale(100%);
filter: gray;
-webkit-transition: all .6s ease;}
.page-id-3257 .avia-image-container img:hover { filter: grayscale(0%);
-webkit-filter: grayscale(0%);
filter: none; }
Give that a try and see what happens.
Hope that helps
TJ
Fixed! It works fine!
Thanks very much for your help.
Hi,
Glad that you fixed it. :)
@TJ: Thanks for helping out :)
Best regards,
Nikko