This is tested, this will take all your sub nav and add the class.
$('#nav li > ul').parent().children("a").addClass("sub-nav");
Related Posts:
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- Add custom menu item using wp_nav_menu_items filter
- Assign a Class to the Current “Tag” for Formatting
- Adding different classes to anchor in navigation menu
- Handling URLs in WordPress application
- Custom CSS class or ID on menu items that have a Submenu
- How can I make this custom menu work?
- Dynamic sidebar nav with current page highlighting
- Style internal links based on the tags of the linked post
- Removing Title From Links to Site
- Switch from hover to click on Twenty Twelve Menu
- How to add a custom CSS class to ALL links
- how to hide submenus for the not active pages
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- After moving my site, sub-menus are not showing [closed]
- Cannot change hover color for links [closed]
- URL links consistent with menus?
- Controlling sub-menu within sub-menu
- Creating a second menu on Twenty Eleven aligned right from the first
- Is there any way to change the CSS class applied to 2nd level sub menu ul’s?
- Superfish and WordPress: Active Color Problem
- Horizontal drop down category with hover effect working
- Change hover to onclick on menu
- How to change hover link colour for blog post (body) text only
- Problems styling a Custom Link in a Menu
- wp_nav_menu container style args
- WordPress menu issue after update
- Display specific main Sub Nav on Woocommerce product pages
- Adding span to a particular text in an menu item
- How can I add this specific link hover effect to a WP site? [closed]
- Always show wordpress submenu on responsive header menu
- WordPress Custom Superfish CSS Problem [closed]
- How to centre menu items on horizontal nav bar? (e.g. make margins equal) [closed]
- how to add permalink/slug to wordpress custom link menu item
- Main Menu Hover is Always White
- Get Sub-Menu Dropdown to Show Over Page Content Avada
- What’s the difference between SCSS and Sass?
- How am I supposed to use index.html?
- Column order manipulation using col-lg-push and col-lg-pull in Twitter Bootstrap 3
- What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
- Adding border to SVG image
- What does !important mean in CSS?
- Set line spacing
- Remove blue underline from link
- CSS Background Opacity [duplicate]
- Outline effect to text
- Customize Bootstrap checkboxes
- Making a
- React.js inline style best practices [closed]
- What is a user agent stylesheet?
- What is a user agent stylesheet?
- Is there a CSS parent selector?
- CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page
- Vertically align text within a div
- How to align a to the middle (horizontally/width) of the page [duplicate]
- Animate the overflow property
- Is there a color code for transparent in HTML?
- multiple classes on single element html
- CSS opacity only to background color, not the text on it?
- How do I center floated elements?
- create a white rgba / CSS3
- Using CSS for a fade-in effect on page load
- Gradient borders
- Superscript in CSS only?
- What is WebKit and how is it related to CSS?
- What’s the difference between display:inline-flex and display:flex?
- Making an iframe responsive
- How can I invert color using CSS?
- How to insert spaces/tabs in text using HTML/CSS
- font-family is inherit. How to find out the font-family in chrome developer pane?
- How to get these two divs side-by-side?
- How can I vertically center a “div” element for all browsers using CSS?
- What does auto do in margin: 0 auto?
- Does bootstrap have builtin padding and margin classes?
- How to change the color of an svg element?
- Changing spacing between paragraphs and inside of paragraphs
- Is there a color code for transparent in HTML?
- How to vertically align an image inside a div
- How can I center an absolutely positioned element in a div?
- Nesting CSS classes
- Applying Comic Sans Ms font style
- How to set up fixed width for
? - “Stray start tag footer” in html validator?
- How to change btn color in Bootstrap
- Make div scrollable
- Failed to decode downloaded font, OTS parsing error: invalid version tag + rails 4
- Chrome give error **Failed to load resource: net::ERR_NAME_NOT_RESOLVED** while other browser load images
- What is the difference between the selectors “.class.class” and “.class .class”?
- CSS: Creating textured backgrounds
- Insert image after each list item
- How to make the HTML link activated by clicking on the
- ?
- How to change text transparency in HTML/CSS?
- How do I hide the bullets on my list for the sidebar?
- limitations of using @Html.EditorForModel
- Transition of background-color
- How to implement max-font-size?
- How to float 3 divs side by side using CSS?
- How to override the properties of a CSS class using another CSS class
- HTML Width Percentage
- Circle button css