Go Back   Themers Club : Computers , Mobiles and Web Development Themes > Webmaster forum > Webmaster Talk

Webmaster Talk Genaral Webmaster talk

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2008, 12:16 AM
Spiral's Avatar
Spiral Spiral is offline
Super Moderator
 
Join Date: Apr 2008
Posts: 1,451
Rep Power: 18
Spiral is on a distinguished road
Default Adding H1 Tags to your Vbulletin Forum and Threads

H1, H2 and H3 tags can help search engines such as Google, Yahoo and MSN figure out what a web page is about.

SO this is an important mod to make. It also is good for your members as it gives a more descriptive introduction to a thread.

As always, you should back up your forums before making any changes.

In the FORUMDISPLAY template find



Quote:
$navbar
and Below it add:



Quote:
<br />
<center>
<h1 class="myh1">$foruminfo[title_clean]</h1>
<h2 class="myh2">$foruminfo[description]</h2>
</center>
<br />
This adds the Forum Name in the H1 Tags and the Forum Description in the H2 tags. It also places these items below the navbar when you visit a forum.

In your SHOWTHREAD template find



Quote:
$navbar
and Below it add:



Quote:
<br />
<center>
<h1 class="myh1">$thread[title]</h1>
<h2 class="myh2">$foruminfo[title_clean]</h2>
</center>
<br />
This adds the Thread Title in the H1 Tags and the Forum Name in the H2 tags. It also places these items below the navbar when you visit a thread.

Now. You can control the size and appearance of H1, H2 and H3 tags via your CSS if you choose.

For example. In your Style Manager, Main CSS, under Additional CSS Definitions, scroll to the bottom and add something such as this:

(This will make all the H1 & H2 tags using this class appear like this, forum wide) This is the code we use here to give you an idea of how it looks.



Quote:
/* ***** H1 Tags ***** */
h1.myh1 {font-family: Arial; font-size: 20px;
color: #000000; font-weight: bold;}

h2.myh2 {font-family: Arial; font-size: 16px;
color: #000000; font-weight: bold;}
You can change the font, font size and whether its bold or not by simply changing the variables. You can also change the color if you like.
Reply With Quote
Reply

Bookmarks

Tags
forum, thread, vbulletin


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:34 AM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.