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

XF 1.2 Meta tag robots on forum home

Discussion in 'Troubleshooting and Problems' started by DRaver, Dec 13, 2013.

  1. DRaver

    DRaver Active Member

    I want to insert a meta tag robots only for the forum home page.

    How can I do that ?
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Edit the PAGE_CONTAINER and use a conditional. @Brogan's resource has a few examples on how to limit it to a single page area.
     
  3. DRaver

    DRaver Active Member

  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    forum_list is the content template for the standard homepage. If yours is different, you will need to determine the content template.
     
  5. DRaver

    DRaver Active Member

    ah, thank you.

    So I will test with this code:

    Code:
    <xen:if is="{$contentTemplate} == 'forum_list'">
    meta name="robots" content="index,follow,noodp,noydir" /
    </xen:if>
     

Share This Page