• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

[How To] Meta Description for SEO

Heffalump

New Member
Showcase
Hello,

I am new with showcase and after installing and testing I was very excited about the awesome functionality.
But i wonder how it is possible to create a meta description tag for SEO?

Thanks

Michael
 
Are you refering to showcase home or each individual showcase? You can edit the templates and add your own META Description (default uses the board description)
 
I am referring to each individual Artikel in Showcase.

Showcase home uses the default meta from xf-site.
Showcase category uses the description, that the category describes.
But the individual articles in the category do not have a meta description.

It would be fine, if the articles used the meta-desription like xenforo threads. Just the first 20 words or so...
 
Ok, its not so difficult and I made the changes for me, and now for others who are interestet.

Search in template nflj_showcase_index

Code:
<xen:title>{xen:phrase nflj_showcase}{xen:helper pagenumber, $page}</xen:title>
<xen:h1>{xen:phrase nflj_showcase}</xen:h1>

Replace with:

Code:
<xen:title>Here you can write whatever you want{xen:helper pagenumber, $page}</xen:title> <xen:h1>Here you can write whatever you want</xen:h1>

Search in template nflj_showcase_index

Code:
<meta name="description" content="{$xenOptions.boardDescription}" />

Ersetze mit:

Code:
<meta name="description" content="Here you can write whatever you want" />

Now you have an unique description and title for the showcase index page.

Now we had to correct the meta title of every article in showcase . I wish to have additional the category in the title.

Search in template nflj_showcase_item

Code:
<xen:title>{$item.item_name}{xen:helper pagenumber, $page}</xen:title>

Replace with:

Code:
<xen:title>{$item.item_name} - {$category.category_name} {xen:helper pagenumber, $page}</xen:title>

And now the meta-description in the same template

Search:

Code:
<xen:require css="nflj_showcase_item.css" />

And add after this:

Code:
<xen:container var="$head.description"> <meta name="description" content="{$item.item_name} - {xen:helper snippet, $item.description, 150}" /></xen:container>

Now the meta-description is generated from the articlename and the first 150 letters of the article.

Last but not least the headline did not have an H1-Tag.

Search in template nflj_showcase_item

Code:
{xen:helper showcasePrefix, $item}{$item.item_name}

Replace with:

Code:
{xen:helper showcasePrefix, $item}<xen:h1>{$item.item_name}</xen:h1>

Now its good for me. :)
 
Back
Top