I’m using a global header snippet to insert everything from my doctype to the closing </head> tag.
Some, but not all, of my templates may require additional information added to the <head> section of the page. I was planning to use preload replace variables for this, but I’m having difficulty getting it to work.
Specifically, I’d like to place something like the following in my header snippet:
{if {pre_head} != ""}
{pre_head}
{/if}This doesn’t work and I haven’t found a variation that does, either.
I could always just put {pre_head} in the header snippet and then just define it on every template, but that seems cumbersome and I’d rather find a way to test if it exists, if possible.
Any good way to do that?