DRaver Active member Dec 13, 2013 #1 I want to insert a meta tag robots only for the forum home page. How can I do that ?
Jeremy in memoriam 1991-2020 Dec 13, 2013 #2 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. Upvote 0 Downvote
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.
DRaver Active member Dec 13, 2013 #3 I found the resource: http://xenforo.com/community/resources/conditional-statements.1604/ But unfortunately there is nothing there for the homepage Upvote 0 Downvote
I found the resource: http://xenforo.com/community/resources/conditional-statements.1604/ But unfortunately there is nothing there for the homepage
Jeremy in memoriam 1991-2020 Dec 13, 2013 #4 How can I show content on a specific page? <xen:if is="{$contentTemplate} == 'xyz'"> This content will show on the xyz template </xen:if> Click to expand... forum_list is the content template for the standard homepage. If yours is different, you will need to determine the content template. Upvote 0 Downvote
How can I show content on a specific page? <xen:if is="{$contentTemplate} == 'xyz'"> This content will show on the xyz template </xen:if> Click to expand... forum_list is the content template for the standard homepage. If yours is different, you will need to determine the content template.
DRaver Active member Dec 13, 2013 #5 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> Upvote 0 Downvote
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>