Mobile app version of vmapp.org
Login or Join
Cody1181609

: Hiding Menu Item with CSS - will Google penalise my site? I want to hide some sub menu items, using the CSS class, and assign it to the specific menu item. For example the class is no display:

@Cody1181609

Posted in: #Css #Google #Menu #Seo #Serps

I want to hide some sub menu items, using the CSS class, and assign it to the specific menu item. For example the class is no display:

/* Hide menu items */
.nodisplay {
display:none !important;
}


This works great, but I wonder if this would be penalized by Google, as I read that Google don't like hidden texts? I read that Google marks this as spam, is it true not?

I have a look at the Gavick Menus and Helix Menus, they are using display: none; or left:-999em; too for making the elements.

So my dilemma is if I use display: none; for hiding all my sub level 3 menu items, will Google penalize my site or not?

I am asking this, because I saw a lot of drop-down menus to use this technique.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cody1181609

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jamie184

No, Google will not penalise your site for hiding menu items in this way. As you mention, this is a common technique and if it was to penalise sites for this then half the sites on the internet would be penalised! (And then they wouldn't use this technique, user experience could go down, etc, etc...)

If, however, you were to hide huge blocks of text with display:none that your code never shows (and you have no intention of showing) then yes you may be penalised. Google uses complex algorithms to detect this behaviour, it's not so simple as "if it's hidden then it must be spam".

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme