Title: Menu items error
Last modified: August 21, 2016

---

# Menu items error

 *  Resolved [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/menu-items-error/)
 * The function `wp_head()` in the file `ai-contact-form-template.php` leads in 
   some themes to the undesiderable effect not to close submenus after mouse hovering.
   By commenting out this function the error disappears and everything works fine.
 * Seen with the theme “Pinboard”.
 * I recommend deleting this function in the file.
 * [https://wordpress.org/plugins/responsive-contact-form/](https://wordpress.org/plugins/responsive-contact-form/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [August Infotech](https://wordpress.org/support/users/augustinfotech/)
 * (@augustinfotech)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/menu-items-error/#post-4823937)
 * Hello Hinjiriyo,
 * Thanks for suggestion.
 * we used this function only because to load JS file into header section. If you
   remove this function then those JS file loads into footer section.
 * Thanks & Regards,
    August Infotech
 *  Thread Starter [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/menu-items-error/#post-4823962)
 * So, the template loads `wp_head()` within the content.
 * I think it could be better. It is recommend for the most cases to load JS files
   in the footer section.
 * And the call of `wp_head()` should only happen within the `HEAD` section of the`
   HTML` code.
 * And if the theme has already called it in the `HEAD` section – as most themes
   do – ALL other scripts and action hooked on wp_head are called once more in your
   template. This leads to undesirable effects as described in my first post.
 * So I think the call of `wp_head()` in your template can be omitted.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Menu items error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/responsive-contact-form_191919.svg)
 * [Multi-language Responsive Contact Form](https://wordpress.org/plugins/responsive-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-contact-form/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/menu-items-error/#post-4823962)
 * Status: resolved