Here you will find details on three different methods of adding H1/H2 tags to your forum's templates. Heading tags (H1/H2) can help provide an extra SEO advantage for your forum. This can provide a direct long tail search boost!
Method 01 - Adding H1 Tags to Thread Titles in the Default vBulletin Style
In this method, you will focus on applying H1 tags around important text (acting as the page title).
To do so, you must edit your your navbar template.
Steps to Updating Your navbar Template with a H1 Tag
- Login to your vBulletin AdminCP.
- On the left hand side of the screen, locate Styles & Templates.
- Expand the menu and click Style Manager.
- Identify the style you wish to update, and then select Edit Templates from the menu.
- A list of all templates for the style will be displayed.
- Find the Navigation / Breadcrumb Templates in the list and and double click it.
- Then double click the navbar template to begin editing.
- At the very bottom of the template, below the rest of the text, please add the following:
HTML Code:<if condition="THIS_SCRIPT == 'forumdisplay'"> <h1>$foruminfo[title_clean]</h1> <else /> <if condition="THIS_SCRIPT == 'showthread'"> <h1>$thread[title]</h1> <else /> <if condition="THIS_SCRIPT == 'group'"> <h1>$custompagetitle</h1> <else /> <if condition="THIS_SCRIPT == 'album'"> <h1>$custompagetitle</h1> <else /> <if condition="THIS_SCRIPT == 'tags'"> <h1>$tag[tagtext]</h1> <else /> <if condition="THIS_SCRIPT == 'blog'"> <h1>$pagetitle</h1> <else /> <if condition="THIS_SCRIPT == 'member'"> <h1>$userinfo[username]</h1> <else /> <h1>$vboptions[bbtitle]</h1> </if> </if> </if> </if> </if> </if> </if>The result is that your thread, social group, album, tag, blog, and member pages will now have new title added, and formatted in a H1 tag which will help to optimize the page for SEO.
- Click save and you are done.
Method 02 - Using a CSS Trick to Add a H1 Tag to Your Logo
In this method, you will focus on applying H1 tags on text included in your logo or header image.
To do so, you must edit your your navbar template.
Steps to Updating Your Header Template with a H1 Tag Using the CSS Trick
Find:
- Login to your vBulletin AdminCP.
- On the left hand side of the screen, locate Styles & Templates.
- Expand the menu and click Style Manager.
- Identify the style you wish to update, and then select Edit Templates from the menu.
- A list of all templates for the style will be displayed.
- Then double click the header template to beginning editing.
- Please locate the following text in your header template
- Note: This is the stock vBulletin template, so it may appear slightly different for you, if you modified or created a custom style.
Replace With:HTML Code:<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a>
HTML Code:<div id="header"><h1><a href="$vboptions[forumhome].php$session[sessionurl_q]">$vboptions[bbtitle]</a></h1></div>
- The next step is to add some CSS code.
- Note: Within the following code you MUST update the "background path" to *your website's logo image*.
Now your H1 will enclose some important text that you want to promote to the search engines. The CSS code hides that text behind the image (i.e. your logo).Code:#header h1 { margin: 0; padding: 0; } #header h1 a { display: block; background: url(images/misc/vbulletin3_logo_white.gif) center left no-repeat; width: 209px; height: 85px; text-indent: -9999px; float: left; }
The H1 should ideally only be used once on the page. So if you plan to use additional heading tags, use H2/H3 or higher. Do not use another H1 on the same page for best results.
A semantically structured page requires the H1 tag to be the first of the H tags to be displayed on the page.
The H2 and H3 tags can be used multiple times through your page (on headings, not random text). Make sure that you follow the hierarchy as follows:
H1 -> H2 -> H3 -> H4 -> H5 -> H6
Do not use them out of order, and do not skip heading levels by jumping from (for example) H1 right to H3s. In this example you have skipped the H2 that must be included to achieve a semantic (i.e. correctly) structured page.
Method 03 - H1 Tag to Your Forum Title
In this method, you will focus on applying H1 tags on text below your logo or header image.
To do so, you must edit your your header template.
Steps to Updating Your Header Template with a H1 Tag Using the CSS Trick
- Login to your vBulletin AdminCP.
- On the left hand side of the screen, locate Styles & Templates.
- Expand the menu and click Style Manager.
- Identify the style you wish to update, and then select Edit Templates from the menu.
- A list of all templates for the style will be displayed.
- Find the header in the list and and double click it.
- Please locate the following text in your header template
Below that please add:Code:$spacer_open
The next step is to add some CSS code:
- Login to your vBulletin AdminCP.
- On the left hand side of the screen, locate Styles & Templates.
- Expand the menu and click Style Manager.
- Identify the style you wish to update, and then select Main CSS from the menu.
- Main CSS details of the style will be listed.
- Locate Additional CSS Definitions.
- Paste CSS variable inside the empty box.
- Click Save button
Code:.h1 { font-size: 1.4em; color: #000000; margin: 0; padding: 6px; }



2Likes
LinkBack URL
About LinkBacks






Reply With Quote

