With CSS 3, you can use the :last-child or :last-of-type selectors:
.is-frontend #content-holder .semplice-navbar nav ul li:last-child {
border-right: 1px solid #000000;
}
However, you could flip this around to make it more backwards compatible using :first-child (which is available in CSS2):
.is-frontend #content-holder .semplice-navbar nav ul li {
border-left: 1px solid #000000;
}
.is-frontend #content-holder .semplice-navbar nav ul li:first-child {
border-right: none;
}
Related Posts:
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- How to move parent li to end of child ul
- How do i style the current menu anchor link’s parent anchor link? [closed]
- Where is definied the theme location for the main menu in a WordPress template?
- How to insert custom code into wp_nav_menu structure?
- Altering html structure and creating custom menus
- Grey out nav buttons unless is_user_logged_in()
- Static page to one page- menu inactive items highlighted
- How Do I Add Images To Main Navigation Menu
- display menu as table layout
- Highlight parent if item from submenu is active
- Menu Arrow for Child Element
- How to add css to single navigation text? [closed]
- Menu Custom Data Attributes
- Full screen nav menu block with avada theme
- Default Nav Highlight
- Odd spacing in Navigation Bar [closed]
- Some doubts about WordPress handle the horizontal main menu visualization
- I’m trying to remove a duplicate menu, which only appears on the homepage?
- Get Each Menu Nav Label of Menus in HTML tag
- wp_nav_menu container style args
- Add/remove image from navigation bar
- WordPress Menu Navigation links not working
- Additional CSS for the nav menu
- Disable Top Nav Bar on Mobile
- Making my main menu a hamburger menu on all platforms
- Responsive Dropdown Menu
- Active page link not getting class assigned
- individual images as navigation design TwentyTen
- Site navigation sits unstyled for a second on page reload [closed]
- How to define the HTML structure when registering a menu in WordPress?
- How to create a menu with pages and post categories?
- remove specific classes from menu items
- Hide menu from homepage
- Missunderstanding of WordPress menus
- How to add schema.org SiteNavigationElement and property URL to navbar?
- WordPress + Bootstrap [closed]
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- Want to add different text after each menu item
- styling wp_nav_menu – horizontal, sub-menu drop downs
- Show children (sub-navigation) of active menu item only
- remove menu items if user can’t read
- Theme Location empty
- custom header navigation has odd spacing [closed]
- Automatically Display Sub Menu
- Adding an external link to wordpress menu
- How to make wordpress nav menu use post custom meta data
- how to remove description from menu buttons?
- Adding a unique ID to each sub-menu
- Menu separator appearing on next line
- Add a counter beside menu item label
- How to trace and resolve a theme problem such as flickering links in WordPress? [closed]
- Trouble hiding menu on single page
- change hover color of specific menu link [closed]
- Adding toggle-able element after menu item
- set certain item in nav walker to active when on archive pages or singles
- Navigation menu not visible (contrast issue) on home page
- wp_nav_menu() | Outputting my own custom code using built in features
- add another html tag after li element in wp_nav_menu
- Remove a class from a using Walker
- My navigation menu isn’t working. What happened? Please help!
- The cart, checkout, and shop links not getting removed
- How to automatically redirect to first item of second navigation level in a multi-level menu?
- How do I change/remove styling (top border) on main menu for active page and hovering (Avada Theme)
- How to hide the menu item created by the theme in WordPress admin panel?
- Make two bootstrap menus collapse into one dropdown
- Twenty Fifteen: Change navigation menu behavior
- Hide pages from the main menu
- Locking in navigation labels before changing title?
- Twenty-Twenty-Two Child Theme Mega Menu
- Dynamic nav menu with icons [closed]
- Hiding Widget On Mobile Devices Removes Our Product Search Box On Mobiles
- change breakpoint widths for divi theme tablet view
- Rename Menu icon in Twenty seventeen theme
- Is there a way to make it so that I don’t get a hamburger menu, but rather a desktop style nav, when resizing to a mobile size
- Prevent primary navigational menu from expanding during page load (WordPress / Astra Theme)
- Give custom class names to WP nav sub-menu
- Tried to hide navigation menu on one page ended up SCRAMBLING the navigation menu on another
- Main Menu Hover is Always White
- Render link description in navigation block
- Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
- why did the homepage button go down from the row of other menu items when I deleted text within the navigator information?
- How do I highlight a WordPress Menu Item for a page that is not on the Menu?
- Header not showing in new pages
- How do I remove the hamburger menu from the Twenty Twenty Four theme?
- Off-Canvas Menu Toggle Issue After WordPress Core Update
- Menu drop down covers contents of page in Mobile view
- wp_nav_menu parent in submenu
- Add a new menu selector element into WordPress nav-menus.php
- Override theme hamburger menu to work without javascript (noscript)
- I only want to show links to categories that have posts in ‘publish’ state in my menu
- Can I create main menu without using built-in menu
- Remove WordPress Menu Classes and ID with Bootstrap Walker
- How to get and set post meta for core/navigation-link?
- How to add toggle-able DOM element after nav menu item?
- Is there any documentation on JS trigger for the Gutenberg “Navigation” block?
- Primary menu item is not highlighting when page is active even though it is linked from a url with query string to pre-populate a form field
- How to get the navigation menu items? [closed]
- How to give a NavWalker its own stylesheet?
- Change color of active link to navigation menu