How do I add to <head> tag of home page?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
thcowboy

How do I add to <head> tag of home page?

Post 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
cyberman

Re: How do I add to <head> tag of home page?

Post by cyberman »

Please look at admin area to menu "layout - templates". In used template you will found the area  ;) ...
thcowboy

Re: How do I add to <head> tag of home page?

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: How do I add to <head> tag of home page?

Post 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.
thcowboy

Re: How do I add to <head> tag of home page?

Post by thcowboy »

Thanks I just found that same answer elswhere
in this forum.

Cheers, Warren

P.S It now works like a charm.
Locked

Return to “CMSMS Core”