: 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
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?
More posts by @Reiling115
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.