• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Infinity Pro: Headshots Overlay

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Infinity Pro: Headshots Overlay

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 7 years, 9 months ago by StephanieT.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 17, 2018 at 2:59 pm #222581
    StephanieT
    Participant

    In the demo theme of Infinity Pro, the headshots of the Infinity Team on the homepage turn a shade of black with text when you hover over them. I can't figure out how that is accomplished. Can someone help me? Thanks!

    August 17, 2018 at 4:47 pm #222582
    Victor Font
    Moderator

    The overlay is always in the same spot. There's a jQuery function in front-page.js that adds a CSS class named focused when the image had focus and removes it when the image loses focus.

    The CSS focus class changes the overlay opacity to 1.

    This is the CSS:

    .featuredpage .team-member.entry:hover .entry-header,
    .featuredpage .team-member.entry:focus .entry-header,
    .featuredpage .team-member.entry.focused .entry-header {
    	background-color: rgba(0,0,0,0.8);
    	opacity: 1;
    	-ms-filter: "alpha(Opacity=1)";
    	filter: alpha(opacity=1);
    }

    This is the jQuery:

    
    	$( '.featuredpage .team-member.entry *' )
    	.focus( function() {
    		$(this).closest( '.entry' ).addClass( 'focused' );
    	})
    	.blur( function() {
    		$(this).closest( '.entry' ).removeClass( 'focused' );
    	});

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    August 19, 2018 at 9:44 pm #222629
    StephanieT
    Participant

    Thank you, Victor. After struggling with this for a couple of days, I finally decided to change themes to preserve my sanity. Thank you for your help though!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble