The Joomla! Extensions Directory ™


HeadTag Plugin

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).

Version 2.0 - Complete rewrite to achieve more tag assignment options, and to implement my tagparser class.
Version 2.1 - minor update to tagparser class resolves multiline script/style issue.
Version 2.2 - fix J3.x version detection issue in plugin config.
Version 2.4 - removed js config statement - we don't need it anymore. now using jtext::script
Version 2.5 - resolved issue introduced in J3.3.1 and J2.5.19

All of my extensions are free and none of my extensions display advertisements or links to my sites or services. If you feel that I have blessed you, then you can bless me by making a contribution to fund future development. Visit the "Website" link to make a contribution.

Report Extension

 

Images

 

2014-08-08
Reviews: 1
HeadTag really helpfull. I have searched the codes and addons couple time, but i have not found them yet. But after i got this, it becomes very much easier for me. Thanks
2014-06-20
Reviews: 6
HeadTag literally saved me hours. I currently fixing a new clients site that has had core hacks added to it in Joomla, VirtueMart and the various RocketTheme extensions (rather than using overrides or plugins). Given I'm already doing most of this work for free, finding HeadTag was a great relief — only wish I could have dontated a bit more. Well done Mike!
2014-05-23
Reviews: 1
Dear Michael: Thank you very much for your useful plugin!
It works great on version 2.5 but it doesn't work on a clean 3.3 installation. On the respective tabs where you have to select the menu items, once you select one, it just doesn't display the rest of the fields "Tag Type" and "Source File".
I wish you all the best :-)
Owner's reply

Fixed in version 2.5

2014-05-01
Reviews: 4
This plugin makes it drop-dead easy to add all types of code to the head of your pages. Not only that, you can select different code for different pages, users and groups. This is an incredibly flexible plugin and works well. I have tried a number of others in this extension category and Headtag is the best out there.
2014-01-29
Reviews: 10
The plugin is surely brilliant and well built, but what I really want to review is the support. I had some problems in making the extension working with my site and even if it's free Michael provided an awesome support sending me in a row 3 custom versions of the plugin until he was able to solve the conflict.
Thank you Michael!
Owner's reply

Version 2.4 contains the changes made for this user, among other performance improvements I made while hunting the bug.

2014-01-18
Reviews: 6
There are some great extensions here at JED, and something to fit almost every need.... almost! There are times when I can't find a Joomla extension that quite fits my need, and that's when I turn to other sources, such as stand alone scripts. Thanks to HeadTag, I can incorporate code, seamlessly, which was never meant to be used as a Joomla extension. I don't know what I would do without HeadTag. Thanks Richey!
Owner's reply

I've run into the same roadblocks - functionality that's missing - the perfect script that isn't a joomla extension - a necessary file or replacement style for one page.... It can be frustrating to find a way to incorporate these elements in ways that they weren't intended.

Fortunately, I consider programming to be the plaything of my adulthood. When I don't have the toy I want to play with - I make it.

I'm glad to hear this extension is helping you achieve your goals. It may be an abstract concept - but great reviews like this help me to achieve mine!

2013-10-18
Reviews: 5
I tested almost all plugins/modules for embedding code in pages.
HeadTag is simply the best. Extremely efficient, allow an incredible simplicity and power.
Using plugin's tags or options is possible get a in-deep control of external styleshhts, js, etc.
Thank you Michael!
xbq
2013-08-12
Reviews: 6
Thank you very much! Works on the fly. I was able to add my specified google fonts easily.