By ltwinner on
So can someone tell me how to do this because I can't figure it out. The zen theme puts the primary links after the content for seo purposes. However it displays them above the content by using negative margins. They are located between the content and the header, I want them above the header, right at the top of the page. Anyone know how to do this?
Comments
_
The Zen page.tpl.php puts the primary links in the content div, which is after the header div.
You'd need to put them in a div before the header...
Pete.
That's not what I'm looking
That's not what I'm looking for. I want to keep them after the content for better SEO. That's the reason zen places them there in the first place. So anyone able to tell me how to have the primary links after the content in the code, yet positioned above it on my web site?
_
position: absolute; - http://www.w3schools.com/Css/pr_class_position.asp
Pete.
...
position absolute is the only way apart form using some other layout technology like JavaScript, but be warned, if your page has a large amount of content and the site is under enough load to slow down page rendering you will have a moment during page load when there is an empty box at the top of the screen, which means if the user scrolls even a small amount they never see your primary links.... been there done that... the seo benefit is dubious at best... for example, lets say your page is lite indexed, maybe the spider never makes it to your primary links... so no link juice is passed on, links not followed, site not indexed properly, like I say, the seo benefit is very, very debatable...
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
i have same issue with zen
i have same issue with zen theme. I need links at very top of page. So you say seo benefits are not great, and to put links above content in code?? Is this safe to do, as I dont want my site to lose ranking because of links above content? Can someone give brief explanation of how links after content in code is 'supposed' to give better seo?
...
Well, from various
raging argumentsdiscussions with the content source order evangelists, I believe the idea is that because the $content variable prints higher in the source order, then on a balance more of $content should get indexed. Of course this is pure speculation (and might I add, a completely unsubstantiated claim without even a sliver of statistical data to back it up) as no one actually knows what SE's are actually indexing at any one time.Think about this, we've been building these layouts for more than 5 years, and still, after all that time, no one can say either way if it works or not. In fact the only reputable study I have read on the subject debased the theory entirely.
It has also been known for a long, long time that SE's will index at least 100k of content of each page, so remove all CSS, images, flash etc and I can tell you that 100k is one heck of a long page (this page as it stands now is a mere 3kb...).
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
A more specific answer
I put a more specific answer to my menu location issue here http://groups.drupal.org/node/94199#comment-744903. Hope it helps!