Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Bootstrap Modals & SEO

Hi guys!

Im building my own site with Wordpress based on Bootstrap's framework. Im creating something similar to this: http://ironsummitmedia.github.io/startbootstrap-agency/

The modals at the 'portfolio' part is what im worrying about, will search engines index these? SEO is gonna be important for my website

I did my 'services' part with modals as well, clicking the image or heading (per service) will open a modal with more info about this service I offer.

Off course, design wise, it's all beautiful if you ask me, but how is it SEO wise?

I would love somebody's insight on this. Thanks!

1 Answer

The only problem i see, and i think that's the part you worry about is that you can't have friendly url on your portfolios items. The good part is that you'll have a lot of text on the homepage for google bots to crawl and index.

So be sure that you have relevant and unique text on your portfolio items, images are saved for web and devices and not too big, be sure to put the "alt" attribut to your images, and bold any important keywords.

In my opinion if you follow some important SEO rules, you must not worry about SEO.

Thank you for your reply! You're right about the friendly url's. opening a modal does not change the url at all, it remains to root url. I do have a lot of text on my homepage, but most of it is in hidden modal div's, and I thought I read something that 'hidden' elements are not crawled right?

Thanks for the confirmation on the alt tags, I was aware of that and added alt and title attributes to my images from the beginning.

I'm glad i could help. I don't know anything about the 'hidden' elements and about the crawling problem.

But if you aks me, i know that google bots crawl the entire code source of an webpage in zigzag including the 'hidden' divs, as long they appear in your code source i think it will be indexed. :)

Thank you for letting me know!

Is there anybody else with a opinion on this question? Thanks!