The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

1090 Modules
626 Ready
464 Need Help
🏆 Leaderboard
Stable v2.0.0

Head Additional Before

vseager/magento2-head-additional-before

Adds a layout block container that lets you place blocks at the very start of the HTML <head>, before other scripts — useful for consent managers and tags that must load first.

185
Downloads
Below average
0
GitHub Stars
7mo ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
3 warnings
L6 PHPStan

Tested on Magento 2.4.9

Recent Test History

Each release is tested against the latest Magento version at that time.

v2.0.0 on Magento 2.4.9
Jun 3, 2026

Share This Module's Status

Head Additional Before Magento compatibility status badge

README

Loaded from GitHub

magento2-head-additional-before

Allows you to place layout blocks in the <head> tag before other scripts

Example usage:

<referenceBlock name="head.additional.before">
    <block class="Magento\Framework\View\Element\Template" name="termly" template="Vendor_Module::template.phtml" />
</referenceBlock>

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.