Unlock endless possibilities for your Joomla site with "System - Head Tag," a versatile plugin that lets you inject any type of tag into the document <head>—from JavaScript and CSS to custom tags—based on menu items, user groups, access levels, or content plugin tags. Whether you’re adding scripts, styles, or frameworks, this all-in-one solution delivers precision control, all for free!
How It Works
"System - Head Tag" empowers you to enhance your Joomla pages effortlessly in two powerful ways:
- Plugin Configuration: Assign tags to specific menu items (with optional inheritance to child items), user groups, or access levels, ensuring targeted injections like jQuery or Bootstrap frameworks.
- Content Plugin Tags: Insert tags directly into articles, descriptions, or modules using simple {headtag} syntax (e.g., ), with support for scripts, styles, custom tags, and even user group or access level restrictions.
Head Tag
v5.0.3
Joomla! 3/4/5
I created this plugin to solve my own challenge—needing to inject JavaScript into individual pages without relying on custom modules or Joomla editors, which often block such additions. Now, you can add JavaScript/CSS source files, declarations, or any custom tag with ease, all while benefiting from the Joomla community I’m passionate about.
Why Choose System - Head Tag?
This plugin isn’t just flexible—it’s a game-changer. Unlike similar tools with limited scope or clunky interfaces, "System - Head Tag" offers a seamless, all-in-one solution for Joomla 3, 4, and 5. It even supports IE conditionals and Joomla JavaScript frameworks (e.g., jQuery, Bootstrap.modal) with a few clicks. Whether you’re a developer tweaking a contact form (like my “Report a Bug” link example below) or a site owner enhancing functionality, this plugin adapts to your needs without compromise.
See It in Action
Click the "Report a Bug" link on this page—it uses a Head Tag-injected script to auto-fill the contact form’s subject field with a few lines of JS, no form edits needed! See the script below, has been injected into the <head> in order to do the job.
window.addEventListener('DOMContentLoaded',function(){
if(window.location.hash.length) {
var subject = atob(window.location.hash.replace('#',''));
document.getElementById('jform_contact_emailmsg').value = subject;
}
});
Features
- Versatile Tag Injection: Add JavaScript/CSS files, declarations, or custom tags to the <head>.
- Dual Usage Modes: Insert via plugin config (menu items, groups, access levels) or {headtag} content tags.
- Targeted Control: Restrict tags by menu item (with inheritance), user group, or access level.
- Framework Support: Inject Joomla frameworks like jQuery or Bootstrap.modal effortlessly.
- Community-Driven: Free for Joomla 3/4/5, reflecting my passion for open-source solutions.
Elevate your Joomla site’s functionality with "System - Head Tag"—the ultimate tool for head tag mastery. Ready to take control?
Video
Download the Plugin
System - Head Tag 5.0.318041
Report a Bug Documentation
Frequently Asked Questions:
What does System - HeadTag do?
System - HeadTag lets you easily add JavaScript, CSS, or custom tags to your Joomla site’s
, boosting functionality for specific pages or users—completely free!
Is this plugin really free?
Yes, it’s 100% free, built with love for the Joomla community, offering powerful features without any cost.
How can I use it on my site?
You can add tags via plugin settings (for menu items, groups, or access levels) or insert {headtag} tags into content—both work together seamlessly!
What types of tags can I add?
It supports JavaScript/CSS files, declarations, custom tags, and even Joomla frameworks like jQuery or Bootstrap—total flexibility!
Can I target specific pages or users?
Absolutely, configure tags for specific menu items (with inheritance), user groups, or access levels, tailoring your site’s behavior perfectly.
Do I need coding skills to use it?
No advanced skills needed! Our documentation guides you, and the intuitive setup makes it accessible for all Joomla users.
How does it work with Joomla versions?
It’s compatible with Joomla 3, 4, and 5, delivering a smooth experience across all modern versions.
Can I see it in action?
Yes, click the "Report a Bug" link on this page—its subject field auto-fills thanks to a HeadTag script, showcasing its power!
Why choose HeadTag over other plugins?
It’s the only all-in-one, free solution with dual usage modes and broad tag support, outshining limited or clunky alternatives.
Can I customize the tags’ appearance?
Yes, tweak positions, animations, and add icons via CSS, giving your site a unique, professional look.
What if I need help setting it up?
Our detailed documentation has you covered, and I’m here to support the Joomla community—reach out anytime!
Does it slow down my site?
No, it’s optimized for performance, enhancing your site without dragging it down—pure upside!
Can I use it for admin pages?
No, this is designed for front-end use only.
Are there examples to learn from?
Check the “Report a Bug” example or dive into the Practical Applications section for inspiration!
How do I get started?
Install it and follow our step-by-step documentation—your Joomla site’s potential is just a download away!
15 Reviews
Retrieved from JED monthly
Complete - Unfiltered
Thanks a lot!
2013-08-12 - cm
Thank you very much! Works on the fly. I was able to add my specified google fonts easily.
Simply the best
2013-10-18 - Carlo
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!
A Must-Have
2014-01-18 - Web Trooper
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!
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!
brilliant plugin and awesome support!
2014-01-29 - Niccolò Angeli
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!
Reply
Version 2.4 contains the changes made for this user, among other performance improvements I made while hunting the bug.
Great Flexible Plugin
2014-05-01 - Dan Walker
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.
Thank you so much!!!
2014-05-23 - trudi thompson
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 :-)
Reply
Fixed in version 2.5
Really Helpfull, thanks
2014-08-08 - AppsNity Project
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
Thank you
2014-09-09 - Ebby Hesse
Hey Mike, thank you very much for this fantastic plugin, I can now do anything I want in joomla. Will bless you soon.
Not work on php 5.2.4
2015-03-03 - Dmitry
- Functionality
- it's wrong to use for engine-back support code that breaks the functionality of the entire engine!
- Ease Of Use
- Not work on php 5.2.4
Reply
Is this a bug report? You're using a version of PHP that Joomla itself no longer supports - so I can't really take your report seriously. At 3.3, the minimum is raised to PHP 5.3.10, and at the time of your report, the Joomla version was 3.4.1. So your problem may have been that your PHP version did not meet the requirements for the parts of the Joomla framework that I was using to create this plugin.
And I don't really appreciate learning about it in a review. You might have tried contacting me first. This plugin isn't free because I'm hostile to the community....
I'm not sure what you mean by "engine-back support code" - this plugin utilizes the Joomla framework exclusively to avoid conflicts that cause a failure. Nobody else is reporting issues, so I can only assume it's your server or setup that's causing the issue.
Couldn't be easier
2017-06-20 - Rob Larkins
- Functionality
- Worked out of the box without any issues
- Ease Of Use
- Only took a moment to figure out how to add my custom content in the plugin's interface
- Support
- (Not needed)
- Documentation
- Although it's easy enough to figure out without documentation, the website has well illustrated docs.
Simple, Elegant, Effective
2018-11-17 - Janice Jones
- Functionality
- Does exactly what it says - allows custom header tags easily
- Ease Of Use
- It really doesn't get any simpler. Just add the tag, choose a menu item and enable the extension.
- Support
- None required
- Documentation
- Available but not required.
Added canonical tags by menu item
2019-01-21 - Mary N
- Functionality
- perfect
- Ease Of Use
- very easy
- Support
- didn't need it
- Documentation
- It was very clear what I needed to do to with this.
parfait pour charger juste ce qu'il faut comme js ou css
2019-10-08 - herve
- Functionality
- Très complet et bien conçu par rapport à d'autres plugins équivalents
- Ease Of Use
- facile d'utilisation car c'est un plugin simple ;très bien je n'ai rien de plus a dire
- Documentation
- documentation simple mais cela semble suffire ;très bien je n'ai rien de plus a dire
Zero Support
2021-09-13 - Mark Watson
- Functionality
- Does what it says but throws up many PHP warnings in the log: in_array() expects parameter 2 to be array, null given in headtag .php line 8
- Ease Of Use
- Simple to set up - jut followed the instructions and installed it as shown.
- Support
- Absolutely zero - no response to forum or emails. Beware! Use this and you are on your own.
- Documentation
- Comprehensive - I found all that I needed to do the required job.
Is it really that difficult to explain how to use it?
2024-07-20 - Giuseppe Bosco
- Functionality
- It seems like lately developers can't find words to describe their extensions, so I decided to write a negative review, so that it can encou
- Ease Of Use
- It seems like lately developers can't find words to describe their extensions, so I decided to write a negative review, so that it can encou
- Support
- It seems like lately developers can't find words to describe their extensions, so I decided to write a negative review, so that it can encou
- Documentation
- It seems like lately developers can't find words to describe their extensions, so I decided to write a negative review, so that it can encou
Reply
You couldn't be bothered to read the published documentation or watch the youtube video?