问题原文
原帖链接 · user3082823 · CC BY-SA 3.0
I currently have an accordion with my content in on my pages. I know Google is starting to crawl websites in mobile and hidden content shouldn't be an issue at the moment but I'm mixing it up a little and wondering if Google will still read the content and give it SEO value e.g.
- Top Accordion - Open
- Rest of Accordion - Collapsed
Should all the accordion be open for now?
已采纳解答
原帖链接 · Raul Reyes · CC BY-SA 3.0
Its really up to you and you don't need to worry about leaving the accordion open or closed.
Let's say that the content is hidden to the user, accordions uses JavaScript to hide or show the content, as long as the javascript is accessible to Googlebot you won't have any issue with your SEO, because Google can access Javascript code and understand that you are using it to hide the content and will be able to also parse or read the hidden content from the source code.
You need to check that your website robots.txt file is not blocking Google to understand that the hidden content is temporary. Go to yourdomain.com/robots.txt and make sure no folder or file containing the Accordion Javascript code is blocked like
User-agent: *
Disallow: /folder/accordion/javascript
or
Disallow: /javascript
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
