Put the java script code in footer.php after wp_footer(); code like this
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery("#primary_menu ul li").hover(function () {
jQuery(this).find("ul").stop().slideToggle(400);
});
});
Remove the dolar sign is not compatible in WordPress in this case.
Related Posts:
- Add custom classes to anchor in wp_nav_menu
- Select menu on browser resize
- Displaying wp menus by name without using theme locations
- How to highlight the current page in the nav menu?
- Setting a Default ‘Theme Location’ When Creating a Menu
- Custom Nav Walker Displaying Values in Sub Menu
- Where is definied the theme location for the main menu in a WordPress template?
- My Admin bar covers my sticky navbar [closed]
- How to make theme elements customizable in wordpress?
- Admin: sub menu doesnt display under apperance when activate my themes
- 3 Level Deep Navigation Menu Not Showing All Levels
- How to add menù section to my WordPress template?
- Thesis -style Navigation
- Why is my container argument not working for wp_nav_menu() [closed]
- Some doubts about WordPress handle the horizontal main menu visualization
- how to create/register menu items that can be added to menus later
- Why nav_menu_css_class doesn’t work with apply_filters?
- Theme: dropdown hover menu not showing up in IE/Edge
- Menu names not getting translated
- Primary Menu Showing All Pages With No Sub-Nav
- What’s the policy for building a theme that doesn’t support widgets/menus?
- How to make navigation a list without a plugin? [duplicate]
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?
- Dynamic nav menu with icons [closed]
- How to add posts to custom menus?
- How to add custom css file in theme?
- Display Menu Name using wp_nav_menu
- get_template_part vs action hooks in themes
- How to remove search bar from a wordpress theme? [closed]
- Get url of thumbnail from the media uploader
- Should I use set_transient or update_option?
- Best practice way to implement custom sections into a WordPress theme
- How to use logout function on custom menu link?
- Problem with registering menus – What to do when other solutions aren’t working?
- Pushing updates to your premium theme
- Where can I find a good reviewed collection of Twenty Ten child themes?
- Front End Post Submit Form
- How do I remove RSS feeds from themes?
- CSS in child theme not overriding the parent theme [closed]
- How to add (css) classes to only one wp_nav_menu()?
- Advantages of using instead of wp_enqueue_style()?
- Style.css redirects to 404 Page not found
- How to add dynamic inline style?
- Optimal solution to develop a wordpress theme?
- How to add suggest plugin to theme?
- Prevent update check for specific theme
- Do I really need the div class entry?
- Am I supposed to create a child theme for every theme I use?
- Why wp_head() function not loading style.css?
- Override theme programmatically
- Set multiple templates per post
- How can I display/hide certain content based on a Theme Option field?
- create-guten-block in wordpress theme?
- WordPress navbar with logo in middle [closed]
- How can I make that when I clic on one of the menu items, that page shows only posts with the same category?
- wp_post->post_parent object returning 0
- Theme Splash Image within the “Appearance -> Themes” control panel [duplicate]
- Theme Loading Into Dashboard
- How to add “Template” option in page attributes panel?
- Which html elements should be styled in wordpress theme
- Folder name for a pro version of a WordPress.org theme?
- Echo all category names, apart from one
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Overrite parent functions using child functions
- Does code in function.php differ from theme to theme
- How can I change the theme of different posts using a plugin?
- How to Create custom xml file for demo content for custom theme?
- Theme not showing up
- Change image size depending on page
- Why still output /wp-content/themes/twentynineteen?
- get_header action not working
- Navbar- disable “onClick” drop-down
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- How to remove permalinks links presents in each page of my site?
- Is there a way to serve different resolution images to different devices?
- Parent/Child pages
- How to substitute old wordpress menu by wp 3 menu the right way?
- How to make a function occurs for one time?
- Archives and Categories in Custom Menu
- How do I restructure the comment HTML layout?
- how to ensure responsiveness in wp themes? [closed]
- home is not working in wordpreess
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- Need help with adding custom wordpress menu and sub-menu
- WordPress Custom font not found
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- New created Theme leads to malfunctioning Xampp Apache –> functions.php is cause
- WordPress Blog Page displaying nothing
- Magnific Popup – Add Caption to Images
- Why do WordPress developers use so many opening and closing PHP tags when developing themes? [duplicate]
- Safe way to echo wp_trim_words
- How can I demonstrate themes well?
- How to update my own theme?
- WordPress custom jquery not found
- How can I change the title of the Home link in the navigation bar?
- How to highlight current menu bar base on the URL?
- How to remove proudly created by WordPress in theme?
- Roll my own theme or customize an existing one [closed]
- Why do some sites show themes/”themename” as the only theme?
- How do I send out an update for my custom wordpress theme?