Skip to content

About

GravCMS v2.x plugin to add CSS, HTML or JS to the header or footer of your website. Perfect for tracking scripts or custom CSS rules.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Intention Header Footer Code

HFCM-style manager for sitewide HTML, CSS, and JavaScript snippets on Grav 2 Admin Next. Insert into the public site and/or the admin SPA without editing theme files.

Requirements

  • Grav 2.0+
  • API plugin (Admin Next)
  • Admin2 plugin
  • PHP 8.3+

Installation

  1. Copy or install the plugin to user/plugins/intention-header-footer-code.
  2. Enable in Admin2 Plugins or set user/config/plugins/intention-header-footer-code.yaml:
enabled: true
  1. Clear cache: bin/grav cache

Usage

  1. Open Admin Next → Header Footer Code in the sidebar.
  2. Add a snippet: title, type (HTML / CSS / JS), location (header / footer), target (frontend / backend / both).
  3. For JavaScript, optionally enable Defer and/or Async.
  4. Toggle enable/disable from the list without opening the editor.

Snippets are stored in user/data/intention-header-footer-code/snippets.yaml.

Permissions

Permission Purpose
admin.intention-header-footer-code.read List/view snippets
admin.intention-header-footer-code.write Create/update/delete

Super admins (api.super) can manage everything.

Agent / Cursor workspace

This directory is a product-scoped Cursor workspace. See AGENTS.md and .cursor/.

About

GravCMS v2.x plugin to add CSS, HTML or JS to the header or footer of your website. Perfect for tracking scripts or custom CSS rules.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages