WordPress.org

Ready to get started?Download WordPress

Forums

Where to paste php code to add menu? (10 posts)

  1. pdv227
    Member
    Posted 3 years ago #

    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!

  2. govpatel
    Member
    Posted 3 years ago #

    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.

  3. pdv227
    Member
    Posted 3 years ago #

    I am using the Glossy Stylo 1.0.4 by aliwkbg Theme.

    Thanks!

  4. govpatel
    Member
    Posted 3 years ago #

    Where do want that dockmenu in the theme just under your blog name description

  5. pdv227
    Member
    Posted 3 years ago #

    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.

  6. govpatel
    Member
    Posted 3 years ago #

    I have managed to put on a test website here is this what you want http://govpatel.com/wordpress if so you put that code in header.php after the last </div>

  7. pdv227
    Member
    Posted 3 years ago #

    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

  8. govpatel
    Member
    Posted 3 years ago #

    recheck if you if you followed the steps as I did not have any problem installing it on the theme

  9. pdv227
    Member
    Posted 3 years ago #

    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). 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.

  10. govpatel
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic