Title: override default menu behavior
Last modified: February 12, 2018

---

# override default menu behavior

 *  Resolved [bhammondCVL](https://wordpress.org/support/users/bhammondcvl/)
 * (@bhammondcvl)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/override-default-menu-behavior/)
 * The category links with a sub-menu in the main menu don’t behave as links should–
   they just open the sub-menu when clicked, so there’s no way to actually travel
   to the parent category page. How do I override this in a child theme?

Viewing 1 replies (of 1 total)

 *  Thread Starter [bhammondCVL](https://wordpress.org/support/users/bhammondcvl/)
 * (@bhammondcvl)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/override-default-menu-behavior/#post-9966832)
 * Figured this out w/ an assist from [StackOverflow](https://stackoverflow.com/questions/24430903/overriding-parent-theme-javascript-from-child-theme).
 * I created a folder and file in my child theme (/griddle-child/includes/custom.
   js) and then added this to my child theme’s functions.php:
 *     ```
       function custom_script_fix()
       {     
           wp_register_script('griddle-script', get_stylesheet_directory_uri() .'/includes/custom.js', false, '1.0');
           wp_enqueue_script( 'griddle-script');
       }
       add_action( 'wp_enqueue_scripts', 'custom_script_fix' );
       ```
   
 * The new file (custom.js) overrides everything in the parent theme’s ‘griddle-
   script’ (/griddle/build/theme-script.js). This also wrecks the responsive menu
   for smaller screens, so you’ll have to add something else to your custom.js to
   get that working again.

Viewing 1 replies (of 1 total)

The topic ‘override default menu behavior’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/griddle/1.0.6/screenshot.jpg)
 * Griddle
 * [Support Threads](https://wordpress.org/support/theme/griddle/)
 * [Active Topics](https://wordpress.org/support/theme/griddle/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/griddle/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/griddle/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [bhammondCVL](https://wordpress.org/support/users/bhammondcvl/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/override-default-menu-behavior/#post-9966832)
 * Status: resolved