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

XF 1.2 How can I add Meta keyword tag to threads ?

#1
Hi.I am wondering How can I add Meta keyword tags to threads ? I can add meta keyword tag to index page , and all pages and threads using these keyword tags.But I want to determine specific meta keyword tags for specific threads.
Thanks.
 
Last edited:

Jake Bunce

XenForo moderator
Staff member
#4
Edit this template:

Admin CP -> Appearance -> Templates -> thread_view

Add this code to the top of the template:

Code:
<xen:if is="{$thread.thread_id} == X">
	<xen:container var="$head.threadkeyword">
		<meta name="keywords" content="your,keywords,for,this,specific,thread" />
	</xen:container>
</xen:if>
You must specify the thread_id (X) and the list of meta keywords you want to add to that thread.

Note that meta keywords are worthless for SEO purposes.
 
#6
Edit this template:

Admin CP -> Appearance -> Templates -> thread_view

Add this code to the top of the template:

Code:
<xen:if is="{$thread.thread_id} == X">
    <xen:container var="$head.threadkeyword">
        <meta name="keywords" content="your,keywords,for,this,specific,thread" />
    </xen:container>
</xen:if>
You must specify the thread_id (X) and the list of meta keywords you want to add to that thread.

Note that meta keywords are worthless for SEO purposes.
Does anyone know if there is an addon available that simplifies adding thread-based keywords from the front end?
 

Hoffi

Well-known member
#8
You don't use the Meta-Tag Keyword anmore for Google and Bing.

Google did not use the keywords since years. Mat Cutts told us this, and I strongly agree to him that invisible Content should not be used to index a site.

So, just spend your time on good content and forget that the meta tag keyword exist.