WordPress.org

Ready to get started?Download WordPress

Forums

Adding a Javascript menu to a popup/modal? (3 posts)

  1. Martin1
    Member
    Posted 1 year ago #

    I am having the weirdest problem. I am setting up my portfolio and I need to show a number of Javascript menu's I have created. However these menu's require me to add a string in between the head tags.

    Well I have tried and I can't get it done in WP.

    Now I came up with the idea of having a link in the portfolio to a pop-up that shows the menu. However this results in the same problem. When I want to show the menu in a simple html page I will need to set the height and width of the pop-up window and remove some of the toolbars. To do that I again need to place code in between the head tags in WP because this is accomplished through Javascript.

    So now I am lost and have no idea how to solve this.

    Would anyone know a creative solution?

  2. You need to add the script to your header.php file. However, if you just add it to the file, it will be overwritten anytime you update your theme.

    Instead, try to use a plugin to include the script in your header. This one should work fine for you:
    http://wordpress.org/extend/plugins/scripts-n-styles/

  3. Martin1
    Member
    Posted 1 year ago #

    I have tried it with adding the string to the header.php but it didn't work. I'll try again and if it still doesn't work try the plugin. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.