Mobile app version of vmapp.org
Login or Join
Reiling115

: Using display:none legitimately. Still a SEO risk? My webpage has a certain text on the footer, about 2 paragraphs. However, it is only relevant to pages and not posts. I would like to hide

@Reiling115

Posted in: #Css #HiddenText #Seo

My webpage has a certain text on the footer, about 2 paragraphs. However, it is only relevant to pages and not posts.

I would like to hide it on posts. If i do this using CSS display:none will I get penalized even though that text has nothing to do with keywords? It is just a statement, but only relevant on pages.

The text is wrapped in a div with an id. So I use:

.single_post #thatdiv {
display:none
}


I am concerned that search engines might consider it spam by mistake. What do you think?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Reiling115

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

You refer to pages and posts so presumably you're using Wordpress and if you are, you can easily show content based on whether the page is a post or a page which saves you from having to hide anything with CSS anyway.

if ( is_page() ) {
// This is what you want to show in the footer for pages...

} else {
// This is what you want to show in the footer for all other pages...
}


But to answer your question, no, legitimate usage of display: none is not an SEO risk. Google algorithms are pretty clever now and they'll be able to see if you're attempting anything shady and displaying some text copy on one page but not another is not going to make a blind bit of difference to how your pages rank organically.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme