- You are missing
<script>
tags - You are using the wrong jQuery variable name. If you want to use the $ alias you need to use noConflict as
helgatheviking suggested or switch to “jQuery” instead of $ - You are missing }); at the end of the code you posted above
- You should consider separating your JS into a separate file and use wp_enqueue_script in
the theme’s functions or other appropriate theme or plugin PHP file
Related Posts:
- Drop Down menu expanded by default (on front page) [closed]
- How to move parent li to end of child ul
- How to apply a class to the second word in menu list item?
- Twenty Fifteen: Change navigation menu behavior
- Hide pages from the main menu
- Odd spacing in Navigation Bar [closed]
- Controlling sub-menu within sub-menu
- WordPress Menus – How to add inline styles to UL menus
- How to manipulate attributes of url-less dropdown item in a the custom wordpress menu?
- Using CSS ID’s and Classes with images in a WordPress Horizontal Menu
- Is there any way to change the CSS class applied to 2nd level sub menu ul’s?
- jQuery Drill Down iPod Menu FOUC and Selecting Current page
- Custom menu styling
- Styling issue with custom menus and sub menus
- Determining the “current_page” in WordPress Custom Menus
- New wp menu menu styling
- Child pages don’t become submenus (as in the twenty-ten theme)?
- Secondary Menu Not Functioning as a Sticky Menu
- I’m trying to remove a duplicate menu, which only appears on the homepage?
- WP Menu Rollover Nav Item and Effect DIV Elsewhere
- Making the menu toggled open on mobile devices Illustratr theme
- Menu item that hides when you click the previous submenu
- Im having trouble centering menu items in footer due to “flexbox”
- Menu items not clickable
- Add class to sub-menu from unrelated element
- Cannot collapse a responsive menu in WordPress
- How to add CSS class to and and id in a nav menu with code?
- Change hover to onclick on menu
- wp_nav_menu container style args
- Add/remove image from navigation bar
- Add “onclick” option to header menu item
- Stuck while adding bootstrap navwalker class
- How to swap text in menu item back and forth?
- How to create a mobile menu full screen overlay using Understraps Bootstrap 4 theme
- Additional CSS for the nav menu
- calling JS to custom menu design
- Disable Top Nav Bar on Mobile
- how do you create this customize menu using wp_nav_menu function?
- How to get rid of the bottom line in the navigation menu via CSS file?
- Active Current Menu – Adding class to child theme
- Mobile menu not working – jQuery error?
- Making my main menu a hamburger menu on all platforms
- WordPress menu issue after update
- Adding span to a particular text in an menu item
- Get Sub-Menu Dropdown to Show Over Page Content
- Problem with positioning of the menu in custom WP style
- Walker or wp_get_nav_menu_items VS jQuery
- show a hidden ul if li is active
- How can I make menu items into two seperate buttons with different functions?
- Responsive Dropdown Menu
- Foundation Scripts not loading (custom theme)
- Links in new menu don’t work
- Mark a page of a queried menu as active
- Vertical Menu items shifting to same line when window size increased [closed]
- Adding two same css class on menu item
- Two questions about CSSing inside the menus
- Always show wordpress submenu on responsive header menu
- Menu item hidden behind others
- Active page link not getting class assigned
- Active menu item / category
- Making a Custom Menu Sidebar Icon show as Current in css [closed]
- Theme: Twenty Thirteen Mobile Sliding Menu Doesn’t Bump Content Down
- Help with changing style of the extended menu drop down [closed]
- How do i keep my current page menu highlighted on pagination?
- Can’t style custom menu
- individual images as navigation design TwentyTen
- Styling Active Links Within WordPress
- Specifying Class style for Menu
- Bought custom navigation menu from codecanyon, how to change feature.php?
- Menu Underline shows without Hover after adding subitems
- Creating a Horizontal menu
- Any plugin to make a 3 levels menu? [closed]
- How to add or remove borders in navigation menu?
- Problem with float:left – unexpected behavior [closed]
- wp nav menu – highlighting current page not working properly [closed]
- Why there is a gap between and it’s container (A drop down menu in wordpress) [closed]
- Changing color of specific tab of top menu
- Why is my hamburger menu not shown? [closed]
- Keeping my Sub Menu open when hovering on its list items
- How to centre menu items on horizontal nav bar? (e.g. make margins equal) [closed]
- How to change first letter of active menu item
- Site navigation sits unstyled for a second on page reload [closed]
- Formatting WordPress Menus (without bullets, inline with text)
- Jquery dropdown menus working locally, but not in WordPress [duplicate]
- Changing when mobile menu is displayed
- Is it possible to animate the Twenty Eleven menu? [closed]
- Adding padding above menu
- how to add permalink/slug to wordpress custom link menu item
- How can I only show one responsive menu on mobile devices?
- Active Navigation Class Based on URL on icon
- Twenty-Twenty-Two Child Theme Mega Menu
- 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
- Main Menu Hover is Always White
- How do I highlight a WordPress Menu Item for a page that is not on the Menu?
- Menu drop down covers contents of page in Mobile view
- Override theme hamburger menu to work without javascript (noscript)
- How to add toggle-able DOM element after nav menu item?
- How to define the HTML structure when registering a menu in WordPress?