Title: Where to paste php code to add menu?
Last modified: August 19, 2016

---

# Where to paste php code to add menu?

 *  [pdv227](https://wordpress.org/support/users/pdv227/)
 * (@pdv227)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/)
 * I have installed the Dock Menu FX, all I need is to paste it’s code ‘<?php dockmenufx_echo_embed_code();?
   >’ “where you want it to show up”. I want it to be part of my theme, showing 
   up on every page, so where do I paste this code at?
 * Thank you!

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

 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/#post-1673693)
 * Most likely you need to put it in header.php or index.php if you want it show
   on all pages and posts can help you more if we know theme you using.
 *  Thread Starter [pdv227](https://wordpress.org/support/users/pdv227/)
 * (@pdv227)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/#post-1673714)
 * I am using the Glossy Stylo 1.0.4 by aliwkbg Theme.
 * Thanks!
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/#post-1673737)
 * Where do want that dockmenu in the theme just under your blog name description
 *  Thread Starter [pdv227](https://wordpress.org/support/users/pdv227/)
 * (@pdv227)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/#post-1673749)
 * I would like it to go right under the title of my site. At the top so it is my
   menu but under the title.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/#post-1673754)
 * I have managed to put on a test website here is this what you want [http://govpatel.com/wordpress](http://govpatel.com/wordpress)
   if so you put that code in header.php after the last </div>
 *  Thread Starter [pdv227](https://wordpress.org/support/users/pdv227/)
 * (@pdv227)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/#post-1673789)
 * Yes thats what I want! But I tried that and this is what it told me
 * Warning: simplexml_load_file() [function.simplexml-load-file]: /home/content/
   55/6670055/html/wp-content/flashxml/dock-menu-fx/settings.xml:19: parser error:
   Extra content at the end of the document in /home/content/55/6670055/html/wp-
   content/plugins/dock-menu-fx/dock-menu-fx.php on line 34
 * Warning: simplexml_load_file() [function.simplexml-load-file]: <Scrolling_Properties
   > in /home/content/55/6670055/html/wp-content/plugins/dock-menu-fx/dock-menu-
   fx.php on line 34
 * Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/content/
   55/6670055/html/wp-content/plugins/dock-menu-fx/dock-menu-fx.php on line 34
 * Fatal error: Call to a member function attributes() on a non-object in /home/
   content/55/6670055/html/wp-content/plugins/dock-menu-fx/dock-menu-fx.php on line
   35
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/#post-1673896)
 * recheck if you if you followed the steps as I did not have any problem installing
   it on the theme
 *  Thread Starter [pdv227](https://wordpress.org/support/users/pdv227/)
 * (@pdv227)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/#post-1674089)
 * Ok when I went through those steps again it worked, the problem occurs and continues
   to occur when I customize my settings from the flash website ([http://www.flashxml.net/dock-menu.html](http://www.flashxml.net/dock-menu.html)).
   I generate my settings, and paste them into the wp-content/flashxml/dock-menu-
   fx/settings.xml to overwrite it as it tells me to do, and that’s when I get the
   errors that I posted above.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/#post-1674102)
 * I am getting same error so there must be something in the script that needs to
   be changed as well.
 * I noticed that setting that works has only 7 images while the settings from that
   site has more may be that is got something that you need to look into

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

The topic ‘Where to paste php code to add menu?’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [paste](https://wordpress.org/support/topic-tag/paste/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [where](https://wordpress.org/support/topic-tag/where/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [govpatel](https://wordpress.org/support/users/govpatel/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/where-to-paste-php-code-to-add-menu/#post-1674102)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
