Mobile app version of vmapp.org
Login or Join
Jamie184

: Index content from a Bootstrap modal I am using Bootstrap modal in my homepage. The content from the modals is not indexed by Google, while almost all other content in that page is indexed.

@Jamie184

Posted in: #Bootstrap #Indexing #Modal

I am using Bootstrap modal in my homepage. The content from the modals is not indexed by Google, while almost all other content in that page is indexed.

How can I index modal content?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Jamie184

2 Comments

Sorted by latest first Latest Oldest Best

 

@Caterina187

Javascript modals are usually ignored by the Gbot since there's no actual URL that a bot can follow.

To do this successfully you'd need to use a CSS modal (ie. a script loads container content from the homepage into the modal) or probably a simpler way is to create a separate page with the same content, and include that page link in your sitemap xml. If it still doesn't get picked up by Google then you'd need to add a link to it somewhere buried in the site.

And in case you're wondering, it is not a good idea to try to hide content from users on your page (by using negative divs or text the same colour as the background etc.) and still present it to the Gbot, as Google tends to see that as spam content and will penalise your page for it.

10% popularity Vote Up Vote Down


 

@Pope3001725

Since the content of the modal "is hidden" until opened (so invisible for spiders) you could try to duplicate the same content on the index page outside of field of view for visitors but not for Google.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme