Skip to content

How can I avoid moving my snippet from <head> to <body>? #328

Answered by jiripudil
EdaCZ asked this question in Support
Discussion options

You must be logged in to vote

Hello, how does your template with the snippets look? Snippets need a wrapping element – by default it's a <div> which is not supposed to go into <head> and I suspect browsers deal with it by moving it to <body>. There's not much Naja can do about it, sorry. Since there is no block wrapper element that is allowed inside the <head>, the only option I can think of is to mark the whole <head> as a snippet.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by EdaCZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants