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?
- Filter wp_nav_menu()
- Show just one level of child pages, wp_list_pages woe
- Use navigation path from menu for permalink
- How to add ul class on nav
- add span class inside wp_nav_menu link anchor tag
- How to set limit only on top levels of wp_nav_menu?
- Show only 2nd level of navigation depending on active navigation
- How to manually add an item to a submenu in a menu generated by wp_nav_menu?
- Using Image Links in WordPress Navigation Menus Instead Of Text Links
- Disguise Multi-Page site as Single Page
- Adding different classes to anchor in navigation menu
- Add Bootstrap dropdown class to a nav menu
- WordPress Add javascript:void(0); to menu link item?
- Search box as a menu item in the nav menu output by wp_nav_menu?
- How to change Twenty Seventeen theme’s navigation bar location?
- How can I put two menus in the same div?
- Second nav is merged with the first in mobile
- WordPress – site with 2 stylesheets and more…
- Add nav menu CSS class to body
- Using Shortcodes in WP-Menus in WP 3.1 (via nav_menu_objects)?
- Programmatically create and place a nav menu in a theme location?
- Auto add pages to primary menu with functions.php
- how to remove the top navigation bar or header top on wordpress website?
- Add class active to static menu
- how can i add css class on current page in wordpress wp_nav_menu
- How to rewrite the output of wordpress nav menu?
- I want to hide the navigation menu on a particular page
- automatically append menu parent as first item in submenu with nav_walker
- Change hyphen/dash for vertical line in menu [closed]
- How to create different navigation for registered users in WooThemes Canvas?
- How to add html attributes to the “ul” html tag with “wp_nav_menu” function?
- My Temptation theme is showing two of the same menu at the top. How do I remove the one that the theme comes with? Please help! [closed]
- How to hide the menu item created by the theme in WordPress admin panel?
- Hide pages from the main menu
- How to add columns to wordpress menu editor
- how to insert data in li tag of navigation
- Current author archive in navigation menu
- Output Post ID for all nav_items
- Custom ul class
- Removing Submenu from Menu
- How to create menu spread over four lines including images
- how to changes mobile menu toggle breakpoint in WordPress
- Help with WordPress Custom Nav Walker
- How to add CSS class to and and id in a nav menu with code?
- Change hover to onclick on menu
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- Where to place a svg chevron down in my custom walker?
- How to apply individual menu item’s “CSS Classes” to , not ?
- Output existing wp_nav_menu with a custom walker
- how to split vertical menu into two columns using walker nav menu
- Sub-Items Not Visible in Navigation
- Adding span to a particular text in an menu item
- How can I create this menu with wp_nav_menu()?
- Get Sub-Menu Dropdown to Show Over Page Content
- Menu Details Output in Javascript [closed]
- Can’t add optional class to menu item when using Walker_Nav_Menu
- Making wordpress menu horizontal [closed]
- jQuery not working when used with wordpress menu
- Theme: Twenty Thirteen Mobile Sliding Menu Doesn’t Bump Content Down
- nav_menu: how to force a subpage switching on the parent menu
- wp_dropdown_nav function to list menu items
- wp_nav_menu() reutrns HTTPS?
- Update nav menu item position programmatically
- Navigational error
- Determine if a navigation item has children
- Display Username as parent menu item
- wp nav menu – highlighting current page not working properly [closed]
- Custom navigation / menu output (walker?)
- Render link description in navigation block