No announcement yet.

How to prevent vBulletin from displaying the same meta description tag on all pages of your forum

  • Filter
  • Time
  • Show
Clear All
new posts

  • How to prevent vBulletin from displaying the same meta description tag on all pages of your forum

    Having the same meta decription on all pages is not really good for SEO. Let's take a look how to get rid of these duplicate tags:
    1. Open your template headinclude in the style editor and delete the meta description tag (but copy it into your clipboard first).

      HTML Code:
      <meta name="description" content="<vb:if condition="$pagenumber > 1">{vb:rawphrase page_x, {vb:raw pagenumber}}-</vb:if>{vb:raw foruminfo.description_clean}" />
      Delete the meta tag with keywords too - they are useless anyway.

      HTML Code:
      <meta name="keywords" content="{vb:raw foruminfo.title_clean}, {vb:raw vboptions.keywords}" />
    2. Now search for {vb:raw headinclude} in all templates. You'll get a list of templates which use the template "headinclude". There are important pages like FORUMHOME, SHOWTHREAD, MEMBERINFO etc. where you might want to add your custom meta description tag.
    3. Open the template FORUMHOME in the editor and find {vb:raw headinclude}. Paste the copied code from the template "headinclude" under {vb:raw headinclude}. After saving there will be displayed unique description that is set in vBulletin options.
    4. Now edit another template where you want to display a unique description. Here is an example of my description code in the SHOWTHREAD template:

      HTML Code:
      <meta name="description" content="Thread on my Awesome forum {vb:raw thread.prefix_plain_html} {vb:raw thread.title}" />
      Hint: Find variables from the TITLE tag (or other parts of the template) and put them in your description to display dynamically generated content like shown above.
    5. Repeat.
    Last edited by Devtard; Tue 4th Dec '12, 5:43am.

  • #2
    META keyword tags may be useless to Google rank but are not useless completely. Link directories for example will often use them to provide keywords for links to your site. If you don't specify them someone else may or may not bother.


    Related Topics