-
AuthorPosts
-
utopia1977 Friend
utopia1977
- Join date:
- December 2006
- Posts:
- 20
- Downloads:
- 0
- Uploads:
- 1
- Thanked:
- 2 times in 1 posts
October 4, 2010 at 6:06 pm #154932I need to insert some JS code straight after the body tag on the template. I am unsure how i can do this. Can someone give me some advice?
Regards
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
October 4, 2010 at 6:17 pm #357695You can view this as js scripts are usually added between <head>..</head> tags 🙂
http://www.joomlart.com/forums/topic/where-to-find-head-tag-in-ja-droid/
Please see that template reference will be different in your case. It will be ja_social
utopia1977 Friendutopia1977
- Join date:
- December 2006
- Posts:
- 20
- Downloads:
- 0
- Uploads:
- 1
- Thanked:
- 2 times in 1 posts
October 4, 2010 at 7:28 pm #357703Hi, Thanks for that. I have read that thread. However, the instruction for the thirdparty software was quite specific that the code needed to be inserted after the body tag, and not within the head tag. Is there any way to do this please?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 5, 2010 at 2:37 am #357725<em>@utopia1977 196859 wrote:</em><blockquote>Hi, Thanks for that. I have read that thread. However, the instruction for the thirdparty software was quite specific that the code needed to be inserted after the body tag, and not within the head tag. Is there any way to do this please?</blockquote>
Hi, kindly try out the below suggestions about how to insert js code in the template.
Firstly, you need know for what that code is use; whether that code originates from a website service such as google analytics, twitter or facebook ( showing the like button ..). Then you try to find an extension on Joomlart’s Extension or Joomla’s Extension, you will follow its userguide for implementation. In case, you could not find any extension,
1) you can use the Custom Module, put that code into content of this module and get it published on expectant position of the template.
2) or you need to hard code in the php file but please note that you should not modify any code in the t3 plugins, because it will become difficult to upgrade version for the t3 plugin in the future.
Finally, complete this task as DongLT’s Solution:a) put code into the head tag
<blockquote>Hi,
Plz copy file head.php FROM plugins/system/jat3/base-themes/default/blocks/ TO templates/ja_droid/blocks/. Then open the new file and add your code to the bottom. </blockquote>
b) put code into the body tag: you can use files: plugins/system/jat3/base-themes/default/blocks/middle.php, or plugins/system/jat3/base-themes/default/blocks/footer.php1 user says Thank You to Saguaros for this useful post
-
AuthorPosts
This topic contains 4 replies, has 3 voices, and was last updated by Saguaros 14 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum