-
Hi guys,
is there a function within the theme where I can activate the hovering (opacity) of certain featured images,for example only for the home-/startpage?
-
Hi there,
No, there isn’t a built-in function in GP. GP is a theme, it’s for global settings, and it does not control individual blocks.
However, you should be able to use CSS code to achieve this.
-
Hi Ying,
thanks a lot! Can you please provide an example code? It would take ages to figure it out on my own 🙁
-
Alvind
Hi there,
Could you provide the link to the page where you want this to be applied?
-
Hi Alvind,
I would like to apply that on all featured images on the same page you are already helping me out.
explorertom.com/17324-2/
-
David
Hi there,
is it just the featured images in the query loops ?
-
The query loops as well as all the others I inserted manually as grid pics.
-
David
Ok.
1, add this CSS to your site:
.image-hover-effect img:hover { opacity: 0.8; transition: opacity 0.3s; }
2. select an Image Block and in Advanced > Additional CSS Classes add:
image-hover-effect
-
That is working! Thanks again!
-
David
Glad to hear that!
- You must be logged in to reply to this topic.