Google SEO and hidden elements

2019-01-07 21:08发布

Will google ignore words that are inside the elements that are set to "display: none" in css?

Example:

<div id="under_meny" style="display:none;">About Us | Contact Us</div>

It looks maybe a bit strange that I want to hide a menu like that, but there is a submenu. And will the user to activate it. But I do not want it to go beyond SEO.

6条回答
2楼-- · 2019-01-07 21:11

hide your menu with javascript on pageload. this way google will still analyse your text. it ignores display:none elements, as well as elements which textcolor is the same as background color, thus making it invisible to the human eye

sources: i read it in a book a long time ago. there are sites on the internet though on the topic

查看更多
在下西门庆
3楼-- · 2019-01-07 21:22

I know this is an old post by I found this website very enlightening.

http://rathamahata.blogspot.com/2007/01/how-do-search-engines-bots-handle.html

查看更多
【Aperson】
4楼-- · 2019-01-07 21:30

These types of hidden content such as overuse of excessive keywords violate Google's Webmaster Guidelines search guidelines.

However, not all links or hidden text are supposed to fool the search engine. For content that the google server is difficult to recognize, such as text on images, javascript or flash, hidden content can improve the indexing of your website content more effectively.

Google is a smart machine and there are always improvements to how to bring information to users in the most effective way. Therefore, when doing SEO for the web, you also need to properly navigate the SEO, avoid overuse that violates the Google search instructions.

查看更多
够拽才男人
5楼-- · 2019-01-07 21:33

This is a genius solution to hide the content via Javascript without having the content flashing while the page loads. Searchbots and users that don't have Javascript enabled will see the text displayed.

查看更多
爷的心禁止访问
6楼-- · 2019-01-07 21:35

You are perfectly safe using display none, this person ran a test and shared the results. Just don't use the attribute for grey hat SEO and you should be fine.

http://seotesttool.com/blog/does-the-google-bot-index-css-hidden-divs/

查看更多
Summer. ? 凉城
7楼-- · 2019-01-07 21:37

If you hide your menu with javascript the search engines will likely not be able to follow the links. I have used dislay:none to hide chunks of navigation which I don't want to appear on certain areas of a website. There are a some CMS sytsems build to show navigation this way and if Google banned all sites built with those CMS systems then it might not be providing the most relevant results.

If you are using it to hide text just for seo purposes stay away from that. It is likely the search engines will not pick it up but if they do - for example if a competitor flags it to Google - and you are using it to hid spammy text then be prepared for the consequences.

查看更多
登录 后发表回答