Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 12:49 PM
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, 09:16 AM
lmilesw's Avatar
lmilesw
 
10,176 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 09:21 AM.
  #3  
Old Sep 1, 2013, 11: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 2, 2013, 12:52 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
'widget logic'

Bookmarks



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 04:14 PM
Permalink in single post and single page anup Center area post/pages 0 Jul 15, 2010 10:46 AM
[SOLVED] Adding 'signature' (image) under each post, but only on single-post page AnneTanne Atahualpa 3 Wordpress theme 4 Aug 24, 2009 12:47 PM
Archive page shows post box help, and single post on front page help boberang Atahualpa 3 Wordpress theme 0 Aug 7, 2009 10: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 03:58 PM


All times are GMT -6. The time now is 12:16 PM.


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