Hideki Yoshimoto
asked 4 years ago

Hello,

I purchased and am using the DW one page retro wordpress theme, which I love. In the blog section, by default setting the thumbnail images are displayed in black and white and turn to colour on mouseover, but I want to remove this function – I want to display the images with full colour all the time.

I can edit PHP comfortably and have looked into raw codes in the inc/assets folder as well but could not find out where you wrote that part of the code. Could you give me some advice to do this?

Many thanks,
Hideki

1 Answers
DominicStaff
answered 4 years ago

Hi,
To resolve this issue, you can open the style.css file, find the line 35 then remove the following code:

.thumbnail img {
  filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
  filter: gray;
  -webkit-filter: grayscale(100%); 
  -webkit-transition: all .6s ease;
  -webkit-backface-visibility: hidden;
}

.thumbnail:hover img {
  filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
  -webkit-filter: grayscale(0%);
}

Hope this helps !

Powered by DW Question & Answer Pro