• 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

How to style a drop-down navigation link

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 › How to style a drop-down navigation link

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 11 years, 8 months ago by Carla the Moose.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 14, 2014 at 12:35 pm #124376
    Carla the Moose
    Member

    I'm not sure how to word this, but I have a navigation drop down menu that is called Animals. When you hover over Animals, you can see the pages assigned to that category. Even though Animals isn't a link, is there a way to make it change colors when hovering and also when I am on one of the pages in the menu?

    I'm using the general Genesis theme.

    September 14, 2014 at 1:25 pm #124379
    jbergen
    Member

    That's certainly possible. The specific CSS will depend on the HTML structure of your menus, but here's a general guideline:

    1) For making the "Animals" menu item change colors on hover, you'll need something like this:

    .genesis-nav-menu > li.menu-item > a:hover {
    	color: ... ;
    }

    (Note that, if it didn't have submenus, you could also add this selector: .genesis-nav-menu .current-menu-item > a to keep it that color when selected.)

    2) For keeping the "Animals" menu item the "selected" color when you're on one of its submenus, you'll need:

    .genesis-nav-menu .current-menu-ancestor > a {
    	color: ... ;
    }

    3) Finally, for keeping the "Animals" menu the "selected" color when your just hovering over one of its submenus (before you've actually selected it), here is a link to a tutorial that will help you do that.

    I hope that helps!
    Jamie


    Jamie @ Ladebug Studios

    September 14, 2014 at 1:49 pm #124381
    Carla the Moose
    Member

    Thank you so much for your wonderful help. It works perfectly!!

    I haven't used drop down sub menus before. I'm so glad they're easy to work with. :o)

    The Animals word is a link to an Animals page. I just assumed I was supposed to create a page for Animals to show up in the navigation bar. But I'm not using it as a page with content; it's just the title of the sub menu. I'm not sure how to prevent Animals from being a link. Do you have any suggestions?

    Thank you!

    September 14, 2014 at 2:16 pm #124385
    jbergen
    Member

    Happy to help! To avoid having a blank Animals page, you can just create a menu (under Appearance -> Menus) that is a link. The URL will be # and the link text will be Animals. That way, nothing will happen when somebody clicks on Animals.

    Jamie


    Jamie @ Ladebug Studios

    September 14, 2014 at 2:26 pm #124387
    Carla the Moose
    Member

    Oh, wow. I had no clue that simply entering # would do that. Thank you!!!

    :o)

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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