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

mbt131

Member
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:
Edit this template:

Admin CP -> Appearance -> Templates -> thread_view

Add this code to the top of the template:

Rich (BB 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.
 
Edit this template:

Admin CP -> Appearance -> Templates -> thread_view

Add this code to the top of the template:

Rich (BB 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?
 
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.

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Top Bottom