π Custom Head β Add HTML, scripts, and meta tags to your forum's head section
Hey everyone!
I built this extension because I needed to add Google Tag Manager to my forum, which requires placing a script in the <head> section. I couldn't find a built-in way to do this in Flarum 2.0, so I made one.
Custom Head adds a simple textarea in the admin panel where you can paste any HTML, scripts, or meta tags to be injected into the <head> of every page. No code editing needed.
Common use cases: Google Tag Manager, Meta Pixel, analytics scripts, custom meta tags, verification tags, or any other head snippet.
π¦ Installation
composer require dashzeveg/flarum-custom-head
php flarum cache:clear
π Update
composer require dashzeveg/flarum-custom-head
php flarum migrate
php flarum cache:clear
Then enable it in your admin panel, paste your HTML into the textarea, and save.
π Links
Compatible with Flarum 2.0.
Feedback and suggestions welcome!