1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

putting code in the header

Discussion in 'XenForo Questions and Support' started by Member 3639, Dec 27, 2011.

  1. Member 3639

    Member 3639 Active Member

    Is there any easy way to insert code into the <head> of the forum?

    Trying to add a G+ page badge.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the PAGE_CONTAINER template.
     
  3. Member 3639

    Member 3639 Active Member

  4. gunnar

    gunnar Active Member

    Can someone tell me where in the PAGE_CONTAINER template this code would go?

    Thanks, Where in the template can I add code?
    This is the example google uses:

    <html>
    <head>
    <script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-123456789",
    enable_page_level_ads: true
    });
    </script>

    This is the head of your page.
    <title>Example HTML page</title>
    </head>
    <body>
    This is the body of your page.
    </body>
    </html>
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page