• 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

Image saturation on Hover- Home page Modern Portfolio Theme

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 › Image saturation on Hover- Home page Modern Portfolio Theme

This topic is: not resolved

Tagged: grayscale, home page, images, Modern Portfolio theme

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 1 month ago by mjrouleau.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 24, 2014 at 7:52 am #96399
    mjrouleau
    Member

    Hello,
    I am trying to make the images appear in grayscale (by using CSS) on the home page, instead of just changing the opacity as it is by default, I would like the images to be in grayscale, then in full color on hover.

    I found this part of code in the CSS file, but don't know how to change it.

    Line 1394 of style.css
    #blog img,
    #portfolio img {
    margin-bottom: 16px;
    margin-bottom: 1.6rem;
    opacity: 0.8;
    }

    #blog img:hover,
    #portfolio img:hover {
    opacity: 1;
    }

    I am not a skillful coder, so any help would be greatly appreciated!
    Maie-Jacques

    http://ateliermacon.dev.horizon-cumulus.ca/
    March 24, 2014 at 8:44 am #96409
    emasai
    Participant

    You can use the following, but it might not work in all browsers.
    #blog img,
    #portfolio img{
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    filter: grayscale(100%); }

    #blog img:hover,
    #portfolio img:hover {
    opacity: 1;
    -webkit-filter: none;
    -moz-filter: none;
    -o-filter: none;
    -ms-filter: none;
    filter: none;
    }


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    March 28, 2014 at 8:16 am #97122
    mjrouleau
    Member

    Thank you emasai! It works very well in Chrome, but not in Firefox. Anyone knows the code that would make it work on all browsers?

  • 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