Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Target Simple Javascript to a Single Page/Post (http://forum.bytesforall.com/showthread.php?t=20842)

lehacarpenter Aug 29, 2013 11:49 AM

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

lmilesw Aug 30, 2013 08:16 AM

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.

lehacarpenter Sep 1, 2013 10:00 PM

Now if only there was a way to target the sidebar to just one single page... :)

juggledad Sep 1, 2013 11:52 PM

'widget logic'


All times are GMT -6. The time now is 02:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.