News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

H tags: Improve SEO mod

Started by franklinrony, July 13, 2010, 05:03:55 PM

Previous topic - Next topic

franklinrony

Link to Mod

With this modification may add tags  h1 and h2 to topics, and improve SEO in search engines like google

Why are they important header tags?

with h tags say to google that titles within our website are relevant,
it's like having a book with different headings, the title is the most important and gives us an idea of what they find to continue reading .

This mod incorporates the style for the headers from the file styles.css

before


after


Brought to you by

Customsmf.net


----------------------------------------spanish------------------------------------------------------------------------
Con esta  modificacion podras agregar etiquetas h1 y h2 a los topics, y mejorar el posicionamiento en motores de busqueda

¿por que son importantes las etiquetas de encabezado?

con las h tags decimos a google que titulos dentro de nuestra web tienen relevancia,
es como tener un libro con diversos encabezados, el titulo es lo mas importante y nos da la idea de lo que encontraremos  al seguir leyendo.

Este mod incorpora el estilo para los encabezados desde el archivo styles.css
ya que los motores de busqueda leen la etiqueta no la hoja de estilo asociado.

antes


despues


Brought to you by

Customsmf.net
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

Aportadordelmix

Muchs gracias por el mod frony

KensonPlays

How to get this to work on SMF 2.0RC3? Thanks!

Owner of Mesozoic Haven

!RFAN


franklinrony

http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

lucas-ruroken

Congratulations, friend frony.

It's a good mod.

Thanks and Greetings ;)
Adk Portal 3.1 is coming....

Design your universe!


jay28

Hi,

This is a great mod well done. I have a small problem, all my thread titles are now displayed in too larger font. How can I reduce the size?

Many thanks

Jay.

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

franklinrony

Quote from: jay28 on September 09, 2010, 11:58:27 AM
Hi,

This is a great mod well done. I have a small problem, all my thread titles are now displayed in too larger font. How can I reduce the size?

Many thanks

Jay.
yeah copy in your css theme

.htagseo_hx {display: inline; color: inherit; border: none; font-size: 1em; font-color: inherit; font-weight: bold; padding: 0px; margin: 0px; }
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

jay28


franklinrony

you are welcome, im glad to help you
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

dphc

Hello,

When Akismet Spam Blocking 1.2 Beta 2 is installed, I get this error when trying to install H tags: Improve SEO mod 1.0, and get the same error from Akismet if I install H tags first.  I still get the error, even if I remove all other plugins. 

QuoteInstallations actions for "H tags: Improve SEO mod":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/index.template.php    Test successful
2.    Execute Modification    ./Themes/default/Display.template.php    Test failed
3.    Execute Modification    ./Themes/default/style.css    Test successful

I can install one or the other with no problems.  Is there anything I can do to resolve the conflict?  I'm using SMF 1.1.11

Thanks

franklinrony

first install the akismet mod, after attach here your display.template.php
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

dphc

Quote from: frony on September 28, 2010, 02:26:50 PM
first install the akismet mod, after attach here your display.template.php

Here you go; this is a fresh display.template (no other plugins) to which I installed Akismet

Thanks,

dphc

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

franklinrony

http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

dphc

Thanks Lucas (& Frony).  Sorry I haven't had a chance to check it yet, but will let you know soon ;)  I have few other plugins that modify that file, so will need to apply the changes manually 8)

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

dphc

Quote from: lucas-ruroken on October 04, 2010, 02:04:19 PM
Ok, Let Me know ::)

Ok, your modification seems to be what's outlined in the manual install...only difference was the missing </div> which is probably what makes the install fail.  Looked at it a few times and almost missed it! 

Also Lucas I have your "H1 Tags in link tree" plugin installed.  It didn't cause any conflicts ;) but it looks like if I use Frony's H Tags plugin, then the functions of your plugin are included, so I don't need to use both...is that right? 

Thanks  8)

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

dphc

Yeah, I see that they both add H1 to the link tree. 

PS: I was able to get it to install properly by modifying htag.xml (attached) ;D  If anyone else wants to use this, you have to install Akismet first.  Unfortunately I couldn't make it universal by searching only for
<a href="', $message['href'], '">', $message['subject'], '</a> 

without the ending punctuation; it looks like the search function will only match on a complete echo statement? 

pjdc

Hello!

Can I use this mod with other theme, not the default theme?
I install this mod, but seems that nothing happen, I can't see any config option...

Thank you.

lucas-ruroken

Quote from: pjdc on December 15, 2010, 04:36:40 AM
Hello!

Can I use this mod with other theme, not the default theme?
I install this mod, but seems that nothing happen, I can't see any config option...

Thank you.

attach your index.template.php
Adk Portal 3.1 is coming....

Design your universe!

pjdc

Thank you for your reply.

Here is my index.template.php file:

lucas-ruroken

Your theme has Display.template.php?

add in your style.css (of your theme)


.htagseo_hx {display: inline; color: inherit; border: none; font-size: 1em; font-color: inherit; font-weight: bold; padding: 0px; margin: 0px; }


in the beggin.


PD: Sorry for my poor english, It's not my native language.
Adk Portal 3.1 is coming....

Design your universe!

pjdc

Hello again,

I try it but doesn't work.
No, my theme does not have the Display.template.php

My issue is: I install the H Tags mod, but I can't see any config option to enable it, and I also can't see any result. The h1 html tags doesn't appear.


lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

pjdc

Sorry.
hxxp:paocaseiro.net [nonactive]

lucas-ruroken

Did you upload the index.template.php attached?
Adk Portal 3.1 is coming....

Design your universe!

pjdc

Sorry for another reply, but I can't see if you post the index.template.php file modified.
I post the file version I have running in the site, in one of my previous replies.

I change my css, but I don't heve the Display.template.php file. Do I need that?

lucas-ruroken

If you installed the mod.... That modified in your Display.template.php
Adk Portal 3.1 is coming....

Design your universe!

agent47

Can someone tell me how effective this mod is?

PortaMx is probably the best SMF portal!

Xarcell

Quote from: agent47 on January 10, 2011, 10:04:31 AM
Can someone tell me how effective this mod is?

Very effective if it works as it should. I've yet to try it. I manually added headings to my templates, I wish I found this mod sooner. It helps search engines find you site based on content better. Headings to google is sorta like chapter titles in books. It keeps things organized and easier to find.

If your site has alot of content, then I say don't do without. If your site doesn't have alot of content, I wouldn't rush it. Although, it takes time before you start seeing the effect in google search rankings.

Juan Londoño

Does this mod still works?

I've tried to install but gives many errors.

franklinrony

maybe yes its outdated..Im back to SMF after 5 years maybe update..first must be read the new SMF file structure
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

Kindred

actually -- unless this mod REMOVES the default H1 tag that SMF comes with, this mod will actually cause PROBLEMS with SEO -- since you are not supposed to have more than one H1 tag on a any page
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

franklinrony

ty. so its a waste of time update the mod...a years ago smf dont had h1 tags. Maybe make other mod for others purposes but first need update my knowledge about SMF. Greetings
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

Topman

Quote from: Kindred on January 16, 2015, 08:07:43 AM
actually -- unless this mod REMOVES the default H1 tag that SMF comes with, this mod will actually cause PROBLEMS with SEO -- since you are not supposed to have more than one H1 tag on a any page

On my forum:
<div id="header"><div class="frame">
      <div id="top_section">         <h1 class="forumtitle">
            <a href="http://forum.brand-newhomes.co.uk/index.php"><img src="http://forum.brand-newhomes.co.uk/bnr1.jpg" alt="New Home Owners And Snagging Forum" /></a>
         </h1>

For this page/post:
http://forum.brand-newhomes.co.uk/taylor-wimpey-homes/issues-with-our-new-taylor-wimpey-home/
For which the H1 should be "issues-with-our-new-taylor-wimpey-home"

No wonder I am losing visitors!

I can't "Parse" this Mod in 2.0.10 because I cannot find themes/default/style.css  anywhere! 
Does it mean index.css?


margarett

Yes, you can change index.css. style.css was in 1.1.x for which this MOD was originally developed.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Topman

I had a look ("find" in notepad++_ for the ?>  to add the Pasre before but it yielded no results.
This was the parse for 2.0.10 so really should it not have said index.css not style.css too for that parse?

margarett

Nop ;)

The MOD was developed for 1.1.11, so no matter what you parse it with, it only knows 1.1.x reality.
Normally I would say that you DON'T USE such an ancient MOD, especially for a different branch of SMF. In this case, because it's "just" CSS tweaking you should be able to get along with it, as long as you can find the correct changes.

CSS files have no "?>". Just add that content at the very end of the file.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Topman

It is not just css tweaking!
Parse is also:
./Themes/default/Display.template.php
and
./Themes/default/index.template.php

Topman

Is it safe to use the "parse" given for this Mod in 2.0.10?

margarett

Yes but most likely you will have a hard time finding the changes because the themes are quite different. Yet, if you know some basic PHP/HTML, you should easily find the corresponding bits of code in 2.0
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Topman

Now am I brave enough?
I was going to use Notepad++ "search" to find the start and finish of the code hopefully.
Then do a cut and paste if it isn't too different.

margarett

If it was that easy, PackMan would do it for you ;)

Let me know if you struggle with it. I'm not at the computer now but I can give it a peek later ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Topman

Thanks Bruno but I have had a look and whilst the index.template looked quite similar and staright forward, the Display.template.php  was quite different.

After all the problems and issues I have had I don't want to cause more.
Perhaps this Mod could be updated PacMan?

Advertisement: