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

Meta description for forum

Discussion in 'General XenForo Discussion and Feedback' started by oloman, Nov 6, 2012.

  1. oloman

    oloman Active Member

    Hi Everybody,

    My forums and sub-forums don't have meta description, where can I add them?
    I wrote description for each one, but meta description doesn't exist.

    Thanks
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    When you edit/create a new node, the description becomes the meta description, as indicated by my screenshot below:
    [​IMG]

    Once you've updated this, view the source of your forum or sub-form and you should see the meta description in the code:
    [​IMG]
     
    oloman likes this.
  3. oloman

    oloman Active Member

    Thanks chris, but not in my website. The description does'nt become meta description.
    Maybe I deleted a line in a template?
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    Maybe you're missing this section from the forum_view template:

    Code:
    <xen:if is="{$forum.description} AND @threadListDescriptions">
    	<xen:description class="baseHtml">{xen:raw $forum.description}</xen:description>
    </xen:if>
     
    oloman likes this.
  5. oloman

    oloman Active Member

    Well, if I put this code, it works (I have to delete "AND @threadListDescriptions"), :
    Code:
    <xen:if is="{$forum.description} ">
        <xen:description class="baseHtml">{xen:raw $forum.description}</xen:description>
    </xen:if>
     
  6. oloman

    oloman Active Member

    Oh I fount it, I had to activate description in style-properties
    It works now:)
    thanks CHRIS
     
    Chris D likes this.

Share This Page