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

Meta description for forum

oloman

Active member
#1
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
 

Chris D

XenForo developer
Staff member
#2
When you edit/create a new node, the description becomes the meta description, as indicated by my screenshot below:


Once you've updated this, view the source of your forum or sub-form and you should see the meta description in the code:
 

oloman

Active member
#3
Thanks chris, but not in my website. The description does'nt become meta description.
Maybe I deleted a line in a template?
 

Chris D

XenForo developer
Staff member
#4
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

Active member
#5
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>