Page 1 of 1
How do I add to <head> tag of home page?
Posted: Fri Feb 17, 2006 7:37 pm
by thcowboy
I am guessing the answer is simple... but I can't figure out how to add
a some code to the tag of my home page. Anybody know
how and where to do this?
Thanks, Warren
Re: How do I add to <head> tag of home page?
Posted: Fri Feb 17, 2006 7:46 pm
by cyberman
Please look at admin area to menu "layout - templates". In used template you will found the area

...
Re: How do I add to <head> tag of home page?
Posted: Sat Feb 18, 2006 6:33 pm
by thcowboy
Thanks... I added the following code in between
But when look at the source of my page the only part of the code that appears in the tags is
As a result my script does not work properly.
Does anyone know why the code disappeared? It is still in the tempate so I assumed it should show on the live site too.
Thanks, Warren
Re: How do I add to <head> tag of home page?
Posted: Sat Feb 18, 2006 6:34 pm
by Ted
Wrap that entire block of code in {literal}{/literal} tags. Smarty is trying to process the javascript thinking that it was intended for it.
Re: How do I add to <head> tag of home page?
Posted: Sat Feb 18, 2006 6:36 pm
by thcowboy
Thanks I just found that same answer elswhere
in this forum.
Cheers, Warren
P.S It now works like a charm.