• 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

CSS Image Hover Help

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 › CSS Image Hover Help

This topic is: not resolved

Tagged: css, image hover, menu image hover

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 3 months ago by alanaburton.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 5, 2013 at 5:03 am #77153
    alanaburton
    Member

    Hi,

    I am building the following site in a test environment: http://192.185.27.6/~natalie/

    I have added to the CSS to get the social media icons in the menu to the right hand side as follows:

    .css-facebook{
    text-indent: -9999px;
    background-image: url(http://192.185.27.6/~natalie/wp-content/uploads/2013/11/facebook-square.jpg) !important;
    background-repeat: no-repeat !important;
    margin-left: 350px !important;
    width: 50px;
    }

    .menu-twitter{
    text-indent: -9999px;
    background-image: url(http://192.185.27.6/~natalie/wp-content/uploads/2013/11/twitter-square.jpg) !important;
    background-repeat: no-repeat !important;
    margin-left: 10px !important;
    width: 50px;
    }

    But the menu already has a hover background colour set in a CSS section above these entries. How can I override that bit of CSS for the social media icons so that they show a second image on hover with no background colour.
    I have a slightly larger duplicate image that I'd like to show on hover which is facebook-square-2.jpg and twitter-square-2.jpg.

    Thanks!

    http://192.185.27.6/~natalie/
    December 5, 2013 at 7:22 am #77169
    nutsandbolts
    Member

    I was able to use a different background color/image in Firebug by adding something like this:

    .css-facebook a:hover {
        background: #000;
    }

    If the menu hover is still overriding it, you may need to add !important.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 5, 2013 at 8:43 am #77183
    alanaburton
    Member

    Thank you!

    I have used your suggestion and added some to get:

    .css-facebook a:hover {
    background-image: url(http://192.185.27.6/~natalie/wp-content/uploads/2013/12/facebook-square-2.jpg) !important;
    background-repeat: no-repeat !important;
    background-color: #fff; !important;
    }

    I just couldn't work out the .css a:hover bit & was trying .css-facebook .a hover etc. type thing, almost but not quite!

    It's still not perfect as there's still a flash of pink when you hover over but at least the icon is also now bigger on hover and you can see it so that's a step in the right direction!

    Thanks again 🙂

  • 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