1. 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 ?

Discussion in 'XenForo Questions and Support' started by mbt131, Feb 9, 2014.

  1. mbt131

    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.
    Last edited: Feb 9, 2014
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. mbt131

    mbt131 Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Edit this template:

    Admin CP -> Appearance -> Templates -> thread_view

    Add this code to the top of the template:

    <xen:if is="{$thread.thread_id} == X">
    	<xen:container var="$head.threadkeyword">
    		<meta name="keywords" content="your,keywords,for,this,specific,thread" />
    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.
  5. Mike Creuzer

    Mike Creuzer Well-Known Member

  6. Main Company

    Main Company Active Member

    Does anyone know if there is an addon available that simplifies adding thread-based keywords from the front end?
  7. FredC

    FredC Well-Known Member

    Main Company likes this.
  8. Hoffi

    Hoffi Well-Known Member

    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.

  9. Main Company

    Main Company Active Member

    we have a private forum, so while i don't care about seo i do care about internal search, and it looks like this addon will help us improve seach. thank you.

    now, i just need to figure out elastic search :)

Share This Page