问题原文
原帖链接 · Howdy_McGee · CC BY-SA 3.0
Whenever I create a Responsive Website I usually create 2 menus: 1 hidden and used for mobile and the other displayed as the main menu, then hidden to show the mobile menu. Whenever it comes to SEO and spiders navigating the website do I get dinged for having duplicate menus? Is there anything I can do to indicate to the spider that this menu is for mobile and this is the main?
The end reason why I have 2 different menus are because of location, usually the main menu is in some kind of bar underneath the logo etc, but the mobile menu I want on top of everything, so above the logo etc.
已采纳解答
原帖链接 · dasickle · CC BY-SA 3.0
You have nothing to worry about. You can use display: none; to switch menus. Search engines are much better at understanding JS and CSS.
As long as you are not intentionally trying to manipulate things to get a better ranking. Using display: none; to hide big blocks of text will get you penalized. So if you are only using to hide your desktop menu on mobile and visa verse you are not in any danger. Take a look a this old thread from StackExchange:
How bad is it to use display: none in CSS?
Google is actually quite fond of responsive design and prefers it to a separate mobile site.
Here is a good article on "SEO of Responsive Design"
Also, check out this article/video:
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
