What mistake did I make? Want to add code before closing body tag.
-
I need to target one page only.
The code I need to add is (I think) javascript. Since I want it before the < / body > tag, I added it to “headway_body_close”.
I added:
if (is_page('page-1')) { <input type="hidden" id="hidLocation" value="https://domain.com/" /> <script type="text/javascript" src="https://domain.com/landing.js"> }
But that doesn’t work. All pages show the code, and not just the one I want.
What mistake did I make?
Thanks,
Limhttps://www.ads-software.com/extend/plugins/thesis-openhook/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘What mistake did I make? Want to add code before closing body tag.’ is closed to new replies.