-
AuthorPosts
-
September 18, 2009 at 1:21 am #144316
Everytime I try to add it in the HTML in the template manager I get a parse error code.
Where should it be placed?
ergohost Friendergohost
- Join date:
- October 2008
- Posts:
- 88
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 17
- Thanked:
- 10 times in 1 posts
September 18, 2009 at 5:15 am #317698I always put it in the bottom of the head code, just above the closing head tag.
With this template the head code is pulled in from a specific file depending on the version of the page for the browser type. This means there are multiple page combinations which means instead of just one file to edit you need to replicate the code in several files. I put the code at the bottom of these files.
/templates/ja_teline_iii/layouts/blocks/head.php
/templates/ja_teline_iii/layouts/blocks/handheld/head.php
/templates/ja_teline_iii/layouts/blocks/iphone/head.phpThe same will apply to code in other parts that get pulled together to build the page depending on the detected browser type.
I find its better to use ftp (flashfxp is my favourite) and a proper html editor, the best of which in my opinion is Adobe/Macromedia Dreamweaver, not cheap but excellent. Pull the files down, edit them locally and upload, that way you get the benefit of undo if you do something wrong 🙂
Hope that helps.
1 user says Thank You to ergohost for this useful post
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
September 18, 2009 at 7:57 am #317702It should go inside the body tag just before </body>
ergohost Friendergohost
- Join date:
- October 2008
- Posts:
- 88
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 17
- Thanked:
- 10 times in 1 posts
September 18, 2009 at 10:22 am #317730<em>@scotty 145106 wrote:</em><blockquote>It should go inside the body tag just before </body></blockquote>
Bah, wheres my head at today, too much noise and stress and far too much staring at code, sorry for the wrong advice, dunno how I got so mixed up.
So the code goes ok in the end of these right scotty?
/templates/ja_teline_iii/layouts/
3columns-classic.php
default.php
handheld.php
iphone.phpzipper Friendzipper
- Join date:
- January 2006
- Posts:
- 62
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 11
- Thanked:
- 30 times in 10 posts
September 18, 2009 at 11:25 am #317751You can also use a module just fill in your details, place it in Debug position with title hiding and you won’t see it. But it’s there, i use it also.
I use J!analytics module found on Joomla.org
-
AuthorPosts
This topic contains 5 replies, has 4 voices, and was last updated by zipper 15 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum