Forums / General Questions / Adding code to <head> tags in ezpages

Adding code to <head> tags in ezpages

Locked

Views: 1,304

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
27 Apr 2009, 3:35 AM
#1
donplay avatar

donplay

New Zenner

Join Date:
Jun 2007
Posts:
72
Plugin Contributions:
0

Adding code to <head> tags in ezpages

Hi,

I want to add a few items within the <head> tags on a single ezpage. These aren't needed on other pages so don't want to add it to my overall site header.

<script src="scripts/mootools.v1.11.js" type="text/javascript"></script>

<script src="scripts/jd.gallery.js" type="text/javascript"></script> <link rel="stylesheet"... Is this possible? thanks, Don
3 May 2009, 4:13 AM
#2
dmfelder avatar

dmfelder

Zen Follower

Join Date:
Nov 2006
Posts:
102
Plugin Contributions:
0

Re: Adding code to <head> tags in ezpages

There is a way to do it. I believe you can just check for the base page value, and then create a PHP "if" statement.

Either do a search in this forum for "determine current url" or Google something like "PHP determine URL".

Each EZPage has a specific chapter, so just do the comparison in the HTML header section.

<?PHP if (url='XXX') { echo '<script> blah blah blah' } ?>

DMFelder | Visit GreatApparelForYou.com for Chicago Direct to Garment printing and Chicago Screen Printing and for Funny Tees and shirts go to gafy.com. We also have Eco-Friendly Printing services.