sv88erik sv88erik - 7 months ago 59
CSS Question

Google SEO and hidden elements

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.

Answer Source

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