Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Target Simple Javascript to a Single Page/Post


  #1  
Old Aug 29, 2013, 11:49 AM
lehacarpenter
 
33 posts · Oct 2009
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.

Thanks in advance for any help.

Leha
  #2  
Old Aug 30, 2013, 08:16 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
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.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Last edited by lmilesw; Aug 30, 2013 at 08:21 AM.
  #3  
Old Sep 1, 2013, 10:00 PM
lehacarpenter
 
33 posts · Oct 2009
Now if only there was a way to target the sidebar to just one single page...
  #4  
Old Sep 1, 2013, 11:52 PM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
'widget logic'

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Post container style different for Home Page than single post page maurixx Center area post/pages 13 Jul 23, 2010 03:14 PM
Permalink in single post and single page anup Center area post/pages 0 Jul 15, 2010 09:46 AM
[SOLVED] Adding 'signature' (image) under each post, but only on single-post page AnneTanne Atahualpa 3 Wordpress theme 4 Aug 24, 2009 11:47 AM
Archive page shows post box help, and single post on front page help boberang Atahualpa 3 Wordpress theme 0 Aug 7, 2009 09:26 AM
[SOLVED] Next post and previous post links on top of single post page error susieswe Atahualpa 3 Wordpress theme 2 Jul 15, 2009 02:58 PM


All times are GMT -6. The time now is 02:38 PM.


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