DNN Blogs

Written for the Community, by the Community

Page header injections improvement

Written By Tycho de Waard (SU)
2026-05-11

Last year I had quite a bit of work trying to get websites found and understood by AI (GEO / AEO). A lot of the work is just 'best practices' like meta tags, og-tags, rich snippets etc. But for AI more is needed. Not just more meta tags but also script tags like JSON-LD.

Luckily DNN has a page header injection option on page level. This allows you to quickly add all these tags and scripts to the page without having to update the theme.The issue I had was: it gets messy. The box of this feature is quite small when you add many tags. But most of all it looks confusing when you have all this code/content together. If you want to change anything, it is more difficult than it needs to be. And mistakes are made easily as well. If you copy a snippet but forget the last >, the HTML is rendered different and results may vary.

So, what we did is create an improved version.This allows you to create a new entry per head injection.

  1. A much cleaner overview what is what and how to manage the head injection
  2. If you make a boo boo, just go to the page settings, delete the malicious piece and all is fine again.

Below the screens.

 

Last week we created the pull request on Github. Hopefully, it will be approved soon and find its way to our beloved DNN platform.

We have spent quite a bit of time on this improvement so hope y'all enjoy :-) 

Total: 2 Comment(s)
This is a really fantastic improvement, thank you for making this happen!
Monday, May 11, 2026 ·
Tycho, I love this effort! This is going to make things so much easier!
Friday, May 15, 2026 ·

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved