The Answer is:
$(document).ready(function() {
$("#f-submenu").hide();
$("#m-submenu").hide();
$("#i-submenu").hide();
$(".widget ul li > a:not(ul li ul li>a, ul li+li ul li>a,ul li+li+li ul li>a
)").attr("href", "javascript:hideMenu();showSubMenu('m-submenu')");
$(".widget ul li+li > a:not(ul li ul li>a, ul li+li ul li>a,ul li+li+li ul li>a
)").attr("href", "javascript:hideMenu();showSubMenu('f-submenu');");
$(".widget ul li+li+li > a:not(ul li ul li>a, ul li+li ul li>a,ul li+li+li ul li>a
)").attr("href", "javascript:hideMenu();showSubMenu('i-submenu');");
});
It seems I must enter every possible undesirable match in each :not
Related Posts:
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- hover image appears below placeholder instead of overlayed
- combine Code 1 with Code 2
- Proper syntax or method for keeping url in modified isotope / category links
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Hide subcategories (widget)
- Adding wp_list_categories to a specific div that was appended using jQuery
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- How to list categories by page id in wordpress
- Slider from different widgets
- How to correctly add Javascript in functions.php
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- Looking to exclude blog posts from category Previous/Next buttons
- How do I add a php statement to a jQuery string
- Looking for a better way to handle an ajax script that pulls in post data on click
- Can’t use get_results() in ajax query
- Show Specific Footer Widget for Specific Pages
- nowplaying.include.php Will Not Display Results
- Access/update database with jQuery
- Passing jQuery value using Ajax to a page template
- How to exclude specific category from the get_the_category(); array
- ajax_object is not defined when ajax calls the function
- I can’t get my custom widget area to show on my WordPress site
- How to run PHP code in Text Widget with no plugin in WP 4.4
- Why is this Ajax not working?
- WordPress widget/sidebar dividers?
- Ajax return code 400
- How to output widget
- ajax, right way to do it and make it works?
- WordPress ajax doesn’t display object method on jQuery .change() function
- How to make my custom widget appear within WordPress widgets? Plugin development
- Adding widgets to my plugin page instead of WordPress dashboard
- get_template_part based upon post’s category
- Menu jumping when calling it via PHP
- Different post styles depending on category
- Setting value of session with Ajax not working
- Click a radio button must set textfield value
- Show latest posts in a plain HTML website custom widget [closed]
- Ajax contact form return 0
- AJAX – Returning Two JSON Objects with One PHP Function
- Define specific category name in PHP
- Category title output before opening title tag
- Is it bad to add html to a widget by closing and reopening the php tags?
- Include Parent Term in wp_list_categories
- Add Ajax Hooks and Call from Custom Template PHP
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- WordPress Ajax Always returning 0
- Jquery window.send_to_editor function
- Theme not calling Jquery properly
- How to add drag and drop functionalities to a div inside option panel
- How to make jquery count down timer function manually editable
- My jQuery Ajax form submit is still refreshing page?
- How to hide posts of a specific custom category in WordPress?
- Add new post in existing categories using wp_insert_post
- How to change logo by category
- Problem with custom loop and wp_list_pluck [closed]
- Output category list inside array
- jQuery accordion menu
- Define category ID using get_post_meta
- display specific widget to a page
- Removed jQuery script from header.php , any problems?
- Dynamically display font icons in widget
- Correct code to use php in text widget
- How To Pass Array To get_the_category_by_ID() and Get An Array Back?
- Covert WordPress Blogname into JQuery
- Stuck with sidebar registering
- Hot to check if new posts have been published since page load and notify online users?
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- how can i include post meta in search result
- I need to display posts in subcategory beside posts in main category
- Order category posts by last word of custom field
- WooCommerce Query Product Titles
- jquery & ajax getting data from php in wordpress . admin-ajax.php returns 400
- Get nice name of category from slug (remove dashes of category)
- Replace jQuery with PHP or CSS for Customized WordPress wp_nav_menu
- Loading Widgets Via Child Theme
- Outputting post content to jQuery .html() string
- Implement jQuery Smart wizard
- Woocommerce – if selected attribute term equals
- WordPress Slick Slider + Magnific Popup
- Show the subcategory name based on current product
- getting the values of hidden inputs to use them in a php mysql query
- Creating Log-In Page for backend server
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- PHP get_category() function redeclared
- WordPress 404 when using AJAX to call php function
- Beyond widget side menu editing, with the php page, custom template
- how use php query in AJAX jquery
- Submitting my form to the database and then redirecting to payment site
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- Pass the updated value of aid from form using ajax
- WordPress – registering sidebar and adding a button directly after .textwidget
- My custom widget won’t stay in the widget area after I refresh the widget page
- !in_array doesnt recognize category
- Remove the_content From Loop
- Category List in Theme Options Page
- Fatal error: Uncaught Error: Call to undefined function wp_nav_menu()
- Add specific phrase after every product title including the discounted price? [closed]
- Adding Custom JQuery Menu Fresh Slide Out