SSL Labs ScoreHSTS Preloaded

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions


5 years 3 months ago #100 by michael
HeadTag was created by michael
HeadTag {arslatest release HeadTag}
Insert any JavaScript/CSS/Any tag into the document head...

HeadTag 3.5.10


Insert any JavaScript/CSS/Any tag into the document head based on ItemID (menu item) or by using the content plugin tag options.

Similar plugins exist, but they are either limited in scope, or have terrible configuration interfaces. HeadTag aims to be an all-in-one solution to provide the ability to add the following types of tags to the document:

  • JavaScript source files
  • JavaScript Declarations
  • Linked StyleSheet (CSS) files
  • Style Declarations
  • Custom tags (of any type)

The plugin can be used in two ways:

  1. By using the plugin configuration to designate tags to be inserted by specific menu item, access level, or user group.
  2. By plugin tags inserted into content items, descriptions or modules (which process content plugins).


  1. Download HeadTag from the RicheyWeb download page.
    • This page will remain unlinked, as the link may change in the future. Visit and use the search feature - search for "HeadTag".
  2. In Joomla /administrator, go to the "Extensions" menu, the "Manage" sub-menu, and the "Install" sub-menu.
  3. Select the "Upload Package File" tab
  4. Press the "Choose File" button to browse your system and locate the plugin file you downloaded
  5. Press the "Upload & Install" button

At this point, the extension is installed but not enabled. You can find the plugin by going to the Extensions menu and selecting "Plugins". When in the plugin manager, search for "HeadTag".


Each tab in the plugin configuration allows a different method of selecting which pages tags will appear. Selecting script and stylesheet types enables an input field for the file URI. Selecting either declaration type or the custom tag type enables a textarea where you can enter your declaration or custom tag data.

Using the content plugin tags, you may inject scripts and declarations into articles or any other area where Joomla processes content tags.

Here is the syntax for the plugin tag usage.

{headtag:scriptdeclaration}console.log('your javascript here');{/headtag}
{headtag:styledeclaration}#elementid { background-color:#404c88; }{/headtag}
{headtag:customtag}<!-- this goes in the head -->{/headtag}
Your declarations and custom tags may span multiple lines.

You may add user group and access level parameters to the tags in order to restrict the audience. For example:

{headtag:script usergroup='1,2,3'}/path/to/your/script.js{/headtag}
{headtag:script accesslevel='1,2,3'}/path/to/your/script.js{/headtag}


Please use the forums to request help. Frequently asked questions may be added to this document at a later date.

Please Log in or Create an account to join the conversation.

6 months 1 week ago #34170 by zoldar
Replied by zoldar on topic HeadTag
I am wanting to insert a google gtag script on one page only in the header. I am sure I have done the right thing to do that by selecting the page concerned which is attached to a hidden menu and then inserting the script. Not sure if that is all I need to do, but the script is not making it onto the page.


Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Powered by Kunena Forum