WordPress.org

Support

Support » How-To and Troubleshooting » How do I add a dynamic link to theme with Javascript

How do I add a dynamic link to theme with Javascript

  • function OpenSoundFrame (){
    	top.location.href = "http://localhost/mysite/wp-content/themes/mytheme/sound_frame/"+framecolor+"/FRAME_"+soundloc+"_"+soundframe+".htm" + "?" + window.location.href;
        	}

    That is: http://localhost/mysite/wp-content/themes/mytheme > how do make this dynamic so I can use the code in other sites.

    Thanks for any help-

  • The topic ‘How do I add a dynamic link to theme with Javascript’ is closed to new replies.