• 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

The color of a parent link in menu when sub-pages are hovered over

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 › General Discussion › The color of a parent link in menu when sub-pages are hovered over

This topic is: resolved

Tagged: css, hover, menu

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 2 months ago by RobCubbon.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 24, 2013 at 7:48 am #37381
    RobCubbon
    Member

    Hi,
    I think there's no way of doing this in CSS but I would like someone's opinion/input.

    Say you have a menu like the one in the header widget here: http://www.crea8ivedesigns.com/

    This menu's links have two background colors : one for the normal state and one for the hover state.

    But, on this menu, one of the links "Portfolio" has a drop down with two child or sub-pages. How can you make the parent "Portfolio" link be a certain color when you hover off it on to the sub menu? This would be nice to do so it would look like the pages are all connected.

    However, to do this you would have to get an element to change it's behavior when another element is hovered over and I'm not sure that's possible in CSS?

    I hope I have explained that OK.


    Rob Cubbon

    http://www.crea8ivedesigns.com/
    April 25, 2013 at 8:39 am #37654
    ramseyp
    Member

    Hi Rob,

    This selector should work for you:

    `.genesis-nav-menu li.sfHover a.sf-with-ul`

    Add that to your CSS where you've got the hover states and the parent menu link should stay in "hover" state while you're in the sub menu.


    Community • Work • Conversations

    April 25, 2013 at 11:39 am #37689
    RobCubbon
    Member

    Hi Ramsey, that works! Thank you so much.

    I don't know how this works but I guess it's something to do with Suckerfish – hence the "sf"

    Amazing the things you can do that you think you can't do.


    Rob Cubbon

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘The color of a parent link in menu when sub-pages are hovered over’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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