Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Hover layer on the start page

  • 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 🙁

  • 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/

  • 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.

  • 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!

  • Glad to hear that!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.