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 »

Question about HTML inserts


  #1  
Old Nov 1, 2012, 12:58 PM
quintero
 
3 posts · Aug 2010
I have a script that I use in the HTML inserts header area, similar to this layout:

<script type="text/javascript">
<!--
if {
;
}
//-->
</script>

Is there a way to restrict this script to the home page only? That is, I don't want it to run on any of the other pages on the site, just the home page.
  #2  
Old Nov 1, 2012, 03:57 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
have the jscript determine what page you are on and wrap your IF in an IF testing the page.

I would do some google searches on finding out how to do that if I were you.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] where can I find ATO-&gt;Add HTML/CSS Inserts-&gt;CSS Inserts jenb Atahualpa 3 Wordpress theme 3 Jun 5, 2012 10:16 AM
why Fields in the Atahualpa 3.3.3 does not expand? css inserts, html inserts krystyna New Versions, & Updating 3 Oct 28, 2010 01:22 PM
[SOLVED] 3.5.3 Default text in ATO&gt;Add HTML/CSS Inserts&gt;CSS Inserts boris_mcnorris New Versions, & Updating 4 Oct 16, 2010 04:57 PM
ADD HTML/CSS Inserts -- 3.5.1 --- Need to remove default CSS Inserts ortho New Versions, & Updating 0 Jun 23, 2010 04:17 PM
[SOLVED] why Fields in the Atahualpa 3.3.3 does not expand? css inserts, html inserts ppat2 New Versions, & Updating 3 Jun 2, 2009 06:41 PM


All times are GMT -6. The time now is 11:26 AM.


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