Forum Moderators: open

Message Too Old, No Replies

SEO - question about header and menu

         

mlduclos

10:55 pm on Nov 9, 2006 (gmt 0)

10+ Year Member



My articles uses 2 includes for header and the left menu. The problem is that this display a lot of code, and comes BEFORE the main article content. The search engines search better the content just below <body> tag... So I want to know if put a <h1> tag after these includes and in the beggining of real content works, and if theres a way to put the include code after content, but for the user appears in the top... thanks

webboy1

10:07 pm on Nov 13, 2006 (gmt 0)

10+ Year Member



This is an interesting question, and one that I hope someone can shed some light on.

We tried finding ways (a long time ago) of bending the code in such a way that the main content appeared first in the source, with other parts of the code appearing later.

A tough task ... and one we never came close to acheiving! With HTML being a code of structure, it actually made sense that bending it in such a way wouldn't be possible, but it was worth a try.

I don't know if there is now a way, particularly with CSS, to do this.

If not possible, then I would suggest simply looking at your 2 includes to make them as cleanly coded as possible, eliminating all reasons for spiders being forced to leave i.e. broken code, un-needed lengthy code etc.

We did a similar excersise recently on a site that had both a header and left nav include appearing before the main content. The includes had been written be an ex employee. We managed to chop over 100 lines out of the code and still have it working the same. (it had been very messy!)

Hope this helps.