DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Push code into head tag of all pages

 1 Replies
 1 Subscribed to this topic
 29 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 7
New Around Here

I am trying to push a common js code into head tag of all the page. I want to leverage DNN Persona bar to insert the javascript code so that the code can be used as plug and play. When required it can be disabled in quickly. There is option to insert code into head tag of single page but I am not aware about any such functionality which can be used to insert the same code into head tag of all the pages.

Veteran Member
Posts: 842
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

Site settings - tab: Site behaviour - Page hader tags

In 10.4 (I hope) there will be an enhancement that enables you to keep a better overview on multiple injections.

https://github.com/dnnsof...Platform/issues/7184

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

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

Get Involved