Questions tagged [getheadhtml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
1k views

How to add Facebook pixel code to my website

How do I add the html code to the head of my website in Craft CMS? Do I need to install a plugin, or is there somewhere I can access the code?
1 vote
1 answer
376 views

Problem with getHeadHtml(), getFootHtml() and caching

I have two problems when it comes to working with getHeadHtml() and getFootHtml(). But first things first. Here's my setup: This is my stripped down _main.twig layout file: <!DOCTYPE html> &...
4 votes
1 answer
320 views

getHeadHtml() not outputting CSS included with {% includeCss %}

I think there is a bug in the getHeadHtml function of craft. In the Documentation (https://craftcms.com/docs/templating/includecss) it says: Your CSS snippet will be output by the getHeadHtml() ...