Help with adding a javascript to the page template?
-
Hi there
I would like to import some daily updated content from a certain site into WordPress-based page content. They provide 2 scripts, one javascript, the other php-based. I used the latter for years, but after changing hosts, the current shared webhost has some php function limitations which forced me to abandon it. The other day I remembered the javascript option, but there is an unexpected problem with it. Whereas on a non-Wordpress page all the content is printed, the script in WordPress content leaves out some crucial portion, below the table.
I wrote the site offering the script and they suggested it works on their WordPress-based and think some local scripts might be interfering. I did deactivate ALL plugins except the SOGO Add Script Header Footer with which I add some javascript component to the header, whereas the other portion is in the page content. It still had the same issue, although looking at the page source shows the code for the missing content is there. The javascript I place in the header using the WordPress plugin on the sample complete page code they provide is in the héader.
Could it be adding the code directly to the page template, apparently as the script’s instructions say, instead of using the SOGO Add Script Header Footer plugin would help and IF SO, exactly how do I go about this, not being a coder and not wanting to the break the site? I use the Spacious theme. Would that page template addition be gone in case I update the theme or WordPress & if so, exactly how can this be avoided?
Instructions:
Include following line into your page`s template – …
“The javascript for importing here”Thank you in advance.
- This topic was modified 2 months, 4 weeks ago by .
- This topic was modified 2 months, 4 weeks ago by .
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.