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

XF 1.5 Where do I place *head content*? (page_container)

Discussion in 'XenForo Questions and Support' started by Håkan Olsson, Aug 22, 2016.

  1. Håkan Olsson

    Håkan Olsson Member

    Hi,

    I have a bunch of "<meta name=..." and a few "<link href=..." that would typically go to the head section in a basic web page.

    I'm looking for a short answer on where to put them – within the page_container's <head></head> or perhaps the <xen:hook name="page_container_head"></xen:hook>? E.g., when is <xen:hook name="page_container_head"> preferable?

    Thanks
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Add it to the page_container_head template.
     
  3. Håkan Olsson

    Håkan Olsson Member

    Ok, perfect

    Thanks!
     
  4. Håkan Olsson

    Håkan Olsson Member

    Actually, me confused. I searched but couldn't find a template with the name "page_container_head"


    Perhaps you meant I should place them in page_container template and between:

    <xen:hook name="page_container_head">

    </xen:hook>
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Sorry that was a typo. Should have been

    page_container_js_head
     
  6. Håkan Olsson

    Håkan Olsson Member

    Ok thanks!
     

Share This Page