Target Simple Javascript to a Single Page/Post
Hi:
I know how to target CSS inserts to specific pages or posts, but would like to be able to add a Javascript custom calculator (body-only code) to a single page and I am not sure how to do that. I know where in HTML inserts to put body-only script code, but not how to target the code to a specific page. Can this be done? Or is there another way? I thought about having it in a widget and covering that one page with a sidebar, but I don't know how to target a sidebar to just one page, either. :o Thanks in advance for any help. Leha |
I just did a quick search on wordpress.org and came up with this plugin. Searching on wordpress.org is one of the first places I go to find solutions.
This plugin will only let you put the code in the sidebar but there are other plugins that let you put widgets on pages and I think I have seen plugin that let you put javascript on a page. |
Now if only there was a way to target the sidebar to just one single page... :)
|
'widget logic'
|
All times are GMT -6. The time now is 02:19 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.