Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does display: none affects SEO on a navigation menu?

Tags:

jquery

css

seo

menu

i want to know if using display:none (via CSS) on a menu will affect SEO (make it less efficient) than using only display:none (via jQuery)

Thank you

like image 653
sf_tristanb Avatar asked Aug 10 '10 00:08

sf_tristanb


1 Answers

From a usability AND SEO perspective, you shouldn't hide elements that are crucial to the webpage - i.e. the primary navigation.

If your requirement is to first hide it and show based on some user action, I would use jQuery to do the hiding.

EDIT: I understand your problem that the navigation might be visible for a brief second before jQuery "kicks in", however this can be solved using inline javascript instead of the usual $(document).load() event.

<ul id="menu"></ul>
<script type="text/javascript">
    document.getElementById('menu').style.display = 'none'; // OR
    $("#menu").hide();
</script>

Hope this helps,

Marko

like image 57
Marko Avatar answered Nov 05 '22 08:11

Marko