CTXMedia Well-known member Jun 23, 2014 #1 I'd like to exclude all threads and posts from my off-topic forum from Google's index, but at the same time keep the threads viewable for guests - is this possible? Thanks, Shaun
I'd like to exclude all threads and posts from my off-topic forum from Google's index, but at the same time keep the threads viewable for guests - is this possible? Thanks, Shaun
Chris D XenForo developer Staff member Jun 24, 2014 #2 Basically add this to a few templates: Code: <xen:if is="{$forum.node_id} == 2"> <xen:container var="$head.noindex"> <meta name="robots" content="noindex" /></xen:container> </xen:if> Where 2 is the forum that should be noindex. Specifically, thread_view and forum_view but there may be others. Upvote 0 Downvote
Basically add this to a few templates: Code: <xen:if is="{$forum.node_id} == 2"> <xen:container var="$head.noindex"> <meta name="robots" content="noindex" /></xen:container> </xen:if> Where 2 is the forum that should be noindex. Specifically, thread_view and forum_view but there may be others.
CTXMedia Well-known member Jun 24, 2014 #4 I've ended up using an array in the head section of the PAGE_CONTAINER template: Code: <xen:if is="in_array({$forum.node_id}, array(x,y,z))"> <meta name="robots" content="noindex" /> </xen:if> Upvote 0 Downvote
I've ended up using an array in the head section of the PAGE_CONTAINER template: Code: <xen:if is="in_array({$forum.node_id}, array(x,y,z))"> <meta name="robots" content="noindex" /> </xen:if>