Forums / General Questions / Add Script to Head in only 1 EZ page

Add Script to Head in only 1 EZ page

Views: 557

Results 1 to 4 of 4
17 Aug 2012, 9:32 PM
#1
timhersh avatar

timhersh

Zen Follower

Join Date:
Aug 2008
Posts:
274
Plugin Contributions:
0

Add Script to Head in only 1 EZ page

unique question. I'm using 1.39

This is my home page http://www.artonthevines.com/STL_Art_Classes/index.php?main_page=page&id=9

I need to add a script in between the <head> tags but ONLY to this page, any idea how to do that? I added it to the html_header but it is showing up on every page. It is not the typical home page so not sure how to do this?

any ideas

thank you

20 Aug 2012, 2:34 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,296
Plugin Contributions:
39

Re: Add Script to Head in only 1 EZ page

You would just use a hook similar to this...

<?php if (in_array($ezpage_id,explode(",",'2,5,1,14,15,16,17,18'))) include("some_include.php"); ?>

in perhaps includes/languages/english/your_template/meta_tags.php

~Melanie

PRO-Webs, Inc. since 2003 https://pro-webs.net/

20 Aug 2012, 2:44 PM
#3
timhersh avatar

timhersh

Zen Follower

Join Date:
Aug 2008
Posts:
274
Plugin Contributions:
0

Re: Add Script to Head in only 1 EZ page

Awesome, thank you, works great

20 Aug 2012, 2:55 PM
#4
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,296
Plugin Contributions:
39

Re: Add Script to Head in only 1 EZ page

Good to hear

PRO-Webs, Inc. since 2003 https://pro-webs.net/