XF 1.4 noindex a specific forum


Well-known member
I have a new member intro forum that is really junky to search engines. how do I noindex threads in that forum? I assume a conditional in page container?

Jake Bunce

XenForo moderator
Staff member
Admin CP -> Appearance -> Templates -> thread_view

Add this code to the top:

Rich (BB code):
<xen:if is="in_array({$thread.node_id}, array(80,81))">

<xen:container var="$head.robots">
    <meta name="robots" content="noindex" /></xen:container>

You must specify the list of node_ids.
I was looking for something like this, but with this solution, sitemap.php will still send URLs of those forums to Google.