Head Section

Can someone please tell me which file I need to change in order to add code to the head section of my site? Managing to edit the tpl files, but just don't know where to look for this… duh!

Thanks in advance

To do it properly, depends on what you want to add.



For scripts, use the index:scripts hook.

For css use the index:styles hook.

For meta data use teh index:meta hook

[quote name=‘tbirnseth’ timestamp=‘1336624739’ post=‘136165’]

To do it properly, depends on what you want to add.



For scripts, use the index:scripts hook.

For css use the index:styles hook.

For meta data use teh index:meta hook

[/quote]



Thanks tbirnseth



So to add a ‘mobile site’ redirection script I could/should add it to the myskin/customer/common_templates/scripts.tpl (i don’t use the my-changes addon) ?



By the way, can I just say thank you very much for all your contributions to this forum. For hacks like me with 0 coding skills, your regular and well thought out answers have enabled me to produce a website that looks and behaves the way I want (though it’s taken months of tinkering). Taking the time to type out answers to what must seem to you basic questions is really appreciated by myself and certainly lots of other hacks out there, though they may not have actually told you so. Thanks again! :-)



b4lly

As I said, “to do it properly, …”

If you're going to just hack it in, why not just do it in index.tpl…