Title: Code is breaking drop-down menu
Last modified: August 21, 2016

---

# Code is breaking drop-down menu

 *  Resolved [OregonBelle](https://wordpress.org/support/users/oregonbelle/)
 * (@oregonbelle)
 * [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/)
 * If Im adding code to a wordpress page that looks something like this…
 * <div id=’menu’><script type=’text/javascript’ src=’[http://address.com’></script></div&gt](http://address.com’></script></div&gt);
 * why does it cause the sites drop-down menu to stop working? Should I be adding
   something before and after it or editing it in a file directly?
 * The code/menu works great, it just breaks the drop-down part of my sites menu.
   When I remove the code the drop-down works great again.
 * Any help would be greatly appreciated.
 * Thank you.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/#post-5004175)
 * That’s not how you add javascript to a theme template file in WordPress. See 
   [wp_enqueue_script()](http://codex.wordpress.org/Function_Reference/wp_enqueue_script).
 *  Thread Starter [OregonBelle](https://wordpress.org/support/users/oregonbelle/)
 * (@oregonbelle)
 * [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/#post-5004180)
 * Thanks for such a quick reply, but that page is a bit beyond what I’m capable
   of understanding. I’m at the ‘do what where?’ stage.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/#post-5004183)
 * I’m sorry but if you cannot manage this yourself, you may want to consider [hiring someone](http://jobs.wordpress.net/)
   to look at this for you.
 *  Thread Starter [OregonBelle](https://wordpress.org/support/users/oregonbelle/)
 * (@oregonbelle)
 * [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/#post-5004186)
 * I was just looking for a little help on how to drop this code in a page so it
   doesnt break the menu….I dont need wp_enque 101 or your superior attitude about
   people who arent WordPress guru’s like you obviously are. Thanks but no thanks
   on the ‘help’. I’ll find it elsewhere and manage quite well without WordPress
   Support!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/#post-5004193)
 * This is a volunteer-staffed support forum. It’s not a “we will do it for you”
   forum. We help you to help yourself. If you cannot – or are not willing – to 
   do that, then your only other option is to hire someone to do the work for you.
 *  Thread Starter [OregonBelle](https://wordpress.org/support/users/oregonbelle/)
 * (@oregonbelle)
 * [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/#post-5004203)
 * Volunteer or not is not the issue. I’ve seen people who cant find their wp login
   get more help than what you’ve offered.
    I’m sure its a simple solution which
   someone can _help_ me with if they so choose. I did not ask anyone to do anything
   for me and sending me to a page that looks Greek to me is of no help at all.
 * So…if someone else can help me I would greatly appreciate it. In the meantime
   I will continue to look elsewhere.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/#post-5004207)
 * >  sending me to a page that looks Greek to me is of no help at all.
 * Whether it looks Greek to you is not something we can control. The fact remains
   is that this is how you enqueue javascript in WordPress. Perhaps if you could
   pinpoint a specific problem with the examples on that page, someone might be 
   able to help. But throwing your hands in the air and saying” I can’t even read
   that” doesn’t leave us many options.
 *  Thread Starter [OregonBelle](https://wordpress.org/support/users/oregonbelle/)
 * (@oregonbelle)
 * [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/#post-5004224)
 * Your option was to HELP, not shrug your shoulders and say ‘oh well, go pay someone’.
 * Leave well enough alone already….just drop it.
 * As I said before, if someone ELSE can help great, I can still use it, but I’m
   looking elsewhere.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/#post-5004232)
 * And when you have a specific problem that we can help with, we will try.

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

The topic ‘Code is breaking drop-down menu’ is closed to new replies.

## Tags

 * [add](https://wordpress.org/support/topic-tag/add/)
 * [breaks](https://wordpress.org/support/topic-tag/breaks/)
 * [code](https://wordpress.org/support/topic-tag/code/)
 * [dropdown](https://wordpress.org/support/topic-tag/dropdown/)
 * [java](https://wordpress.org/support/topic-tag/java/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/code-is-breaking-drop-down-menu/#post-5004232)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
