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
- Using shipped version of jquery
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- Category Thumbnail Display – How to display ONLY the main Category
- Where do posts get the sidebar from?
- Missing sidebar parameter “fix” – before_content
- How to test nonce with AJAX – Plugin development
- Woocommerce add to cart quantity buttons with AJAX
- js file in root loading without
- WooCommerce – Reset quantity input field when variation changes
- get current product name in functions.php
- class click counter save number
- How to add just one specific page to widget without plugin?
- get post based on category chosen in drop down – The ajax method
- How to use transient in this code for related post?
- Slider loading issue
- Checking for new message using AJAX and PHP. Server overload?
- jQuery not defined
- AJAX request status 200 but no actual “response”
- Conditional Header in wordpress
- Creating a related post section based on similar categories
- Create onClick Event to Re-load a Widget
- Swapping wp_dropdown_categories function with wp_category_checklist
- How to put a variable in a instance in the widget
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- How to output widget
- How to select the contents in the text view textrea in wp_editor?
- wordpress count link clicks by ip address
- Extending the WP_Widget_Text class
- ajax, right way to do it and make it works?
- Filter Select results based on selection
- Dynamic Sidebars & Echo
- What is an equivalent of single_cat_title for getting the slug of the category?
- Is there a way to programmatically create multiple pages utilizing the same template but different content from a json file?
- Ajax load more posts with multiple tax query
- Issue adding sub category programmatically
- WordPress Sending data to Ajax with select option
- WordPress ajax doesn’t display object method on jQuery .change() function
- Ajax loaded form replaces form action with Ajax url
- How to exclude category ID from Looper in WordPress
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- Add a specific part of current category page url to shortcode
- how do I get a specific post from a post with a subcategory in WP
- How to design a table based on css values set from admin/dashboard
- WP grandchild categories in nested ul li
- Grab posts by multiple categories
- How to show single category archive
- Adding Custom Slider
- Move category description below post list in blog
- How to pick the default selected value in wordpress dropdown?
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- Applying A Category to Existing Posts Where Page Title Matches Regex
- Ajax date_query not working past the first iteration
- Get page that displays all children of taxonomy parent
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- Why ajax doesn’t work on certain wordpress hooks and reload the page instead?
- AJAX pagination, update current page
- Limit Widgets to Sidebar ID’s
- How to make my custom widget appear within WordPress widgets? Plugin development
- Save Search System
- adjust section according to country?
- populate form fields in a loop with ajax
- dynamic dependent select dropdown
- get widget number from array dynamically
- Change “add to cart” button color based on Woocommerce product category [closed]
- selected option if current category is the value
- How can I get the values of my WordPress $wpdb query in Jquery?
- Adding widgets to my plugin page instead of WordPress dashboard
- Ajax request returns ‘Array’. How to output the actual results?
- Ajax load more button for comments wordpress
- Slick + PHP + ACF + JQuery slide reveal not working
- get_template_part based upon post’s category
- How to add a do_action on refreshing of WP customizer?
- how to save selected option in variable for rest api category filter
- Setting default category base on theme activation
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- Gravity form built in Captcha
- Alert Bar section within WP loop is displaying even though there are no posts
- Let Users Choose Post Categories
- Menu jumping when calling it via PHP
- Why my image upload button is not working in wordpress widget area?
- Different post styles depending on category
- Setting value of session with Ajax not working
- Display category name only once inside loop
- Click a radio button must set textfield value
- WordPress Multiple Navigation bars
- Adding a widget function into the php theme file
- How to edit widget code to add unique class name to each div?
- [jQuery]Adding shortcode
- multiple taxonomy select display only one in front end
- Display parent and child taxonomies in separate drop down select fields