• 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

Minimum Pro – Add Hover Effect to .entry-content Only on Front Page

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 › Minimum Pro – Add Hover Effect to .entry-content Only on Front Page

This topic is: not resolved

Tagged: Genesis Grid Loop, hover, minimum, pro

  • This topic has 2 replies, 2 voices, and was last updated 6 years, 3 months ago by Spreafico.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 15, 2016 at 5:07 pm #196211
    Spreafico
    Member

    Hi guys,

    i am using the Minimum Pro Theme and would like to add a hover effect to scale in an change background color on blog excerpts on my home page.

    I used stylesheet;
    .entry-content {
    -webkit-transition: 0.5s ease;
    transition: 0.5s ease;
    }

    .entry-content:hover {
    background: #a2a2a2;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    }

    However this gives me a hover effect on every page like my "About" page as well.

    From my understanding this occurs because all pages use the entry-content div.

    What would be the smartest way to achieve this? Do i need to add a new div to the grid loop and only use it on the home page? What would suck in the blog posts excerpts and header images then?

    http://keepmovinblog.com
    November 19, 2016 at 3:45 pm #196375
    Tom
    Participant

    The <body> tag includes a class of "home" on the front page only. To apply a style to a home page element only, add ".home" to the CSS selector for the element.

    .home .entry-content { ... }
    

    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    December 13, 2016 at 1:51 pm #197537
    Spreafico
    Member

    Wow,

    that was super simple and I should have really seen this, while checking the files.

    Tanks a lot!

  • 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

© 2023 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