Hi guys, I'm trying to stall a php script onto my existing Wordpress site, but I'm having trouble applying the Wordpress theme to the the script. The script has a javascript code that runs in the head section, so it's a little tricky. I've tried the include function for the head and footer, but it doesn't work and gives me errors. Example: <?php include("http://www.domain.com/wp-content/themes/theme-name/header.php"); ?> PHP: Any advice would be helpful. Thanks, Steve
Not sure, If I am on Point. But try to put the script in the header.php file of the theme you are using. if the header file is tooooooo meshed up, try to search for plugin that could do the job for you (i hope you will find one). Regards.
There may be a conflict with another js file. Try putting your .js just before </head> in header.php Or link to your site and file so we can look.
Is header.php actually creating HTML for a page header? (If you can't answer that you'll need to hire a programmer to make your script work.)
Thanks for all the responses guys. I found a solution that does not require me to mess around with the coding.