Disable Parent Nav Menu Links

Applies to Version(s): Thesis 1

First, go to Thesis Design Options, and expand the “Sitewide JS Libraries” section (under JavaScript). Check the jQuery option, and SAVE your changes.

Then, place this code in custom_functions.php:

function custom_footer_script() { ?>
	<script type="text/javascript">
	jQuery("#page li:has(ul.submenu)").hover(function() {
		jQuery(this).children("a").click(function () {
			return false;
<?php }

add_action('thesis_hook_after_html', 'custom_footer_script'); 

Note that if you are using the Full-width HTML Framework, you should change #page in the code above to be .page instead.