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 »

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,682 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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 05:00 PM.


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