Mobile app version of vmapp.org
Login or Join
Odierno851

: Google and display:none for multilanguage content I know that there are a couple of question about the effect of using display:none on the Google ranking, but none of those answered my specific

@Odierno851

Posted in: #Css #GoogleSearch #Multilingual #Seo

I know that there are a couple of question about the effect of using display:none on the Google ranking, but none of those answered my specific question, so hear me out please.

I'm currently working on a WordPress-based website. I want to be able to write posts and pages in both English and German and give visitors the choice to view the content in either language. I've tried out several of the available plugins, all of which didn't exactly fit my needs (because I don't want the menues, the widgets and other things on my site to be translated). So I wrote a small JavaScript function that allows me to put both the English and the German version of the post/page in seperate divs, where one is hidden and the other one is visible (using the CSS properties display:block and display:none). I then place a button at the top of the post/page that switches the display property, so that the div that was hidden becomes visible and vice versa (the button triggers the JavaScript function which looks something like that: myDiv.style.disply = "none" or "block")

Will this affect my Google ranking? And how will the content show up on Google?

If this is not a good idea, what could I do instead?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

1 Comments

Sorted by latest first Latest Oldest Best

 

@Chiappetta492

That doesn't sound like a good idea at all. Google isn't likely to be keen on the bilingual content (as it sees it), and there's also the issue of people using old web browsers that may not have JavaScript or CSS support. I suggest finding a way to separate the content into separate URLs.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme