Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • utopia1977 Friend
    #154932

    I 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 Friend
    #357695

    You 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 Friend
    #357703

    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?

    Saguaros Moderator
    #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.php

Viewing 4 posts - 1 through 4 (of 4 total)

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