MyBB Community Forums

Full Version: H1 tag plugin for MyBB?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It seems mybb doesn't have some automatic H1 tag, I got the google plugin installed. But traffic travis (analayzing software) tells me that my forum doesn't have the forum name in H1 tags.

So is there a mod for this or a simple code change?
After implementing this change I'm sure I'll climb up google search results!

I just noticed not only is the title missing in H1 tags, but also the forum has just 1 keyword in the metatag area.

So now I need H1 title AND I neeed more keywords somehow in the top section of the html.
edit the header template.
So in the header template do I replace this =

<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

With this =

<div class="logo"><h1><a href="{$mybb->settings['bburl']}"><span><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></span></a></h1></div>


Is that correct to make forum name the H1 tag?
YALDARAM posted in another thread about fixing the metatags, so description + keywords is fixed now with this plugin:
http://mods.mybb.com/view/metatags-plugin

But still how do I make forum name appear as H1 in the index page?

Waht code for the latest MYBB?
Ok don't use the plugin I mentioned above if you do you might end up with DOUBLE keywords and description etc.

Instead to edit metatags just go and edit your index in templates.

So now to my original question how do I make forum name H1???
that's one possibility, but another, probably better is:
<h1 class="logo"><a href="{$mybb->settings['bburl']}"><span><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></span></a></h1>

but it depends on your theme.
Default theme
Thanks it worked however first it got all messed up but it worked after I removed =
</div>

From the end of it.

Thankyou, lets see if it shows up on my SEO analysis tool doesn't show yet.
I don't think my SEO software and thus google will find the H1 tag...
Is ay this because I had instant results when I added h1 to a text on the page on a wordpress blog, but the software traffic travis finds no H1 tag on the forum.

I think I must enter on page text and that the fetching from database won't do it for google

I think the solution is to add visable text using H1 next to the LOGO any idea where this would go?
aha inserting h1 next to logo makes google see the h1 keywords!!!

Success at last..

But it looks very ugly so I'll try to add it in a catchy cool sentence to the footer instead Wink
Am I cool or what I fixed this LOL

Here look at the footer:
http://www.scrapeboxforum.com/
It looks ok right?
Traffic Travis tells me that google now see's my main keyword "scrapebox" as H1 on the index page.
So I'll get better rankings any moment now because of that.

Those reading this, you need to enter this code:
<h1 style="text-align: right;">ScrapeBox Forum - Get PR3 Working 1 Minute Only!</h1>

Into your Footer template from your mybb admin templates area, go to templates then click on footer to see the codes.

You need to paste into the following area like this =
-------------------------------------------

<div id="debug"><debugstuff></div> <!-- MyBB is free software developed and maintained by a volunteer community. It would be much appreciated by the MyBB Group if you left the full copyright and "powered by" notice intact, to show your support for MyBB. If you choose to remove or modify the copyright below, you may be refused support on the MyBB Community Forums. This is free software, support us and we'll support you. -->{$lang->powered_by} <a href="http://mybb.com/" target="_blank">MyBB{$mybbversion}</a>, &copy; 2002-{$copy_year} <a href="http://mybb.com/" target="_blank">MyBB Group</a>.<br /> <!-- End powered by --><h1 style="text-align: right;">ScrapeBox Forum - Get PR3 Working 1 Minute Only!</h1> <br /><br class="clear" /><!-- The following piece of code allows MyBB to run scheduled tasks. DO NOT REMOVE -->{$task_image}<!-- End task image code -->{$auto_dst_detection} </div> </div>

----------------------------------------
So just add the above bold code and change to your keyword and catchy text.
Good luck and may google be with you Wink