Adding a script to the <head> tag

Support Ticket

+status
answered
+tags
 

The instructions for adding this javascript widget are just: paste this line in your <head> tag. But I do that in Default Layout and when I inspect the page I can see that it's garbled the line. So I looked in *head and can see all kinds of scripts there, but that isn't editable. When I edit the contents, the box is blank. When I look at the rules for *head there are a list of scripts, but those are all actual script contents stored on the site. This is stored remotely.

 

So... how do I get this tag in the header?

<meta name="description" content="Teen Wolf Wiki is an encyclopedia for the MTV show Teen Wolf, with episode recaps, character summaries, mythology, canon, timelines, and fandom events.">
<meta name="msvalidate.01" content="B8C028CE36B1C2683770CC7E2050F8B8" />
<meta name="norton-safeweb-site-verification" content="gs6yn7vynpnafq1k7kuoewt4pac8tar3o3tj0a6eokhwrzimsu5v61fyvusm75ikzfn4-8a99yemjir5c6iba-o2l6kh5l-a3ly2-2hjy5dsdfa0odnsbfsjj5ix5v5f" />
<meta http-equiv="Content-Language" content="en">
<script src="//widget.battleforthenet.com/widget.min.js" async></script>
 

Hmm, layout cards aren't supposed to do any special processing. Would you be willing to paste a before and after version in this conversation?

 

In the meantime, you can include an HTML card inside the head like this {{mywidget|core}} (or even "raw" view).

--Ethan McCutchen.....2014-09-11 21:46:32 +0000

Okay, so I copied the script text right from Battle for the Net's site and the example text is what the top section of Default Layout looks like. Then I viewed the source of the homepage after the change and took a screenshot, and line 41 is where it shows up but with a link embedded in it.

--Lora Friedenthal.....2014-09-11 23:56:21 +0000

Thanks, Lora. This should help us fix the problem.

--Ethan McCutchen.....2014-09-12 03:19:27 +0000