PHPackages                             bnomei/kirby3-htmlhead - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. bnomei/kirby3-htmlhead

ActiveKirby-plugin[Queues &amp; Workers](/categories/queues)

bnomei/kirby3-htmlhead
======================

Kirby Plugin for a best-practice HTML Head Element extendable with snippets.

5.0.4(1y ago)253.8k[1 PRs](https://github.com/bnomei/kirby3-htmlhead/pulls)MITPHPPHP &gt;=8.2CI passing

Since Jul 25Pushed 2mo agoCompare

[ Source](https://github.com/bnomei/kirby3-htmlhead)[ Packagist](https://packagist.org/packages/bnomei/kirby3-htmlhead)[ RSS](/packages/bnomei-kirby3-htmlhead/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (54)Used By (0)

Kirby HTMLHead
==============

[](#kirby-htmlhead)

[![Kirby 5](https://camo.githubusercontent.com/b1a1b2ccd58e96259a9722c2489d91f40378c01b6c4c3e9fd27ed1d12c269d7c/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f4b697262792f353f636f6c6f723d454343373438)](https://getkirby.com)[![PHP 8.2](https://camo.githubusercontent.com/fd050028b4459f3f6e4db5703412957375ceb180d27951213d421eb2a23c8c8e/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f5048502f382e323f636f6c6f723d3445354239332669636f6e3d706870266c6162656c)](https://camo.githubusercontent.com/fd050028b4459f3f6e4db5703412957375ceb180d27951213d421eb2a23c8c8e/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f5048502f382e323f636f6c6f723d3445354239332669636f6e3d706870266c6162656c)[![Release](https://camo.githubusercontent.com/67384302798f283bab0b66ffb6c5d743c6958c51c9ec18e3d304d0caed9b00a8/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f626e6f6d65692f6b69726279332d68746d6c686561643f636f6c6f723d6165383166662669636f6e3d676974687562266c6162656c)](https://camo.githubusercontent.com/67384302798f283bab0b66ffb6c5d743c6958c51c9ec18e3d304d0caed9b00a8/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f626e6f6d65692f6b69726279332d68746d6c686561643f636f6c6f723d6165383166662669636f6e3d676974687562266c6162656c)[![Downloads](https://camo.githubusercontent.com/edecbcbb7bc5e4dcadc43d3124ead3aa391c32ae33e5ee5a237b84c4e641490b/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f64742f626e6f6d65692f6b69726279332d68746d6c686561643f636f6c6f723d3237323832322669636f6e3d676974687562266c6162656c)](https://camo.githubusercontent.com/edecbcbb7bc5e4dcadc43d3124ead3aa391c32ae33e5ee5a237b84c4e641490b/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f64742f626e6f6d65692f6b69726279332d68746d6c686561643f636f6c6f723d3237323832322669636f6e3d676974687562266c6162656c)[![Discord](https://camo.githubusercontent.com/36eaef1b06f4996feb7587aa3281dcbd658e57535bc6b5e10110ed108e7a7a03/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f646973636f72642f626e6f6d65693f636f6c6f723d3732383964612669636f6e3d646973636f7264266c6162656c)](https://discordapp.com/users/bnomei)[![Buymecoffee](https://camo.githubusercontent.com/62e55d1129b82bf9c2fd4656451e81ab87a9787e7c9676ca58276532ed9666ee/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f69636f6e2f646f6e6174653f69636f6e3d6275796d6561636f6666656526636f6c6f723d464638313346266c6162656c)](https://www.buymeacoffee.com/bnomei)

Kirby Plugin for a best-practice HTML Head Element extendable with snippets.

Installation
------------

[](#installation)

- unzip [master.zip](https://github.com/bnomei/kirby3-htmlhead/archive/master.zip) as folder `site/plugins/kirby3-htmlhead` or
- `git submodule add https://github.com/bnomei/kirby3-htmlhead.git site/plugins/kirby3-htmlhead` or
- `composer require bnomei/kirby3-htmlhead`

Usage
-----

[](#usage)

Use the `htmlhead()` helper to add meta tags, link tags, script tags, etc. to the head of your HTML document. The helper performs a little bit of magic and is actually calling regular Kirby snippets. This way, you can mix and match the helper with your own snippets.

Tip

The order of the tags in the code example is based on best practices. You might want to stick to it as closely as possible and append your own at the end.

```
DOCTYPE html>
