• 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

Remove border-right in navigation

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 › Remove border-right in navigation

This topic is: not resolved

Tagged: css class header navigation

  • This topic has 4 replies, 3 voices, and was last updated 10 years, 10 months ago by deluxecards.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 14, 2015 at 5:37 pm #159418
    CJWheels
    Member

    I know this is easy, and I just can't get it to work. Client wants the border right in the header nav: http://theyallcallmemom.com/
    Which I've added no problem. No matter what I put in the css class to remove the right border from the last element, nothing happens. Again, I know it's easy...what am I missing?

    http://theyallcallmemom.com/
    July 14, 2015 at 6:50 pm #159424
    brock
    Member

    Is this what you're going for?

    .site-header .genesis-nav-menu li:last-child a {
    	border-right: none;
    }
    July 14, 2015 at 7:16 pm #159427
    CJWheels
    Member

    Perfection! How did I not know this one?

    http://theyallcallmemom.com/

    Thanks so much Brock!

    C

    July 14, 2015 at 7:21 pm #159428
    brock
    Member

    Cool! It's a little tricky because you have to target the last child of the list, which is the li, and only then target the a. It's tempting to try to target the a as a last child when it's actually a first child of the li!

    July 15, 2015 at 2:43 am #159457
    deluxecards
    Member

    Thanks a lot!
    I had the same problem.


    http://www.deluxe-cards.ro/

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ 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