Will background images get indexed?
-
Will images, loaded via css class, get indexed?
For example something like :
style="background-image: url(https://www.mysite.be/content/dam/homepage-mama.jpg/_jcr_content/renditions/cq5dam.web.2000.9999.jpeg);"
-
On my site there is a gallery made by images embedded as background images.
Google doesn't see them.
-
On a sidenote, if you want to prevent indexation of them you can probably add the URLs in to Robots.txt or disallow a specific folder for those images.
On the flipside, if you want to get them indexed, you can manually link to the images and submit an image sitemap to google with just those particular images. Doing both is better than just one.
-
Quick anecdotal reference - for the 1 site I just checked (which allows CSS to be crawled), no they are not indexed.
However, Google crawls CSS and can load those images when you Fetch And Render inside of GWT I believe, so theoretically they can index them.
Next question is what would cause them to do so (eg inbound links to that image file), but I don't have an answer for that.
-
Unfortunately, "can" and "will" are sometimes two different matters. Google is pretty CSS-savvy at this point, and I'm 98% sure they can index those images. If it's a background image, and depending on how it's set up, they may choose not to, but that's a bit trickier.
Weird question, but do you want it indexed, or not?
Asking around to see if there are any image-SEO experts who can provide a more data-driven answer.
-
Nancy,
Although I am saying this all based on my personal speculation I believe that they will be indexed. I do not know 100% if it will but Google has gotten much better at indexing Java/CSS. As far as if you want these to be indexed I would also take a look at Google's image guidelines for best practice and see if there is something of value in there.
-
Hi Nancy,
This article might be of some assistance - http://stackoverflow.com/questions/25773047/what-will-be-indexed-better-in-search-engines-img-tags-or-background-images-wit
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
What happens if I structurally uploaded two different images under the same name? Will Google penalise me for it?
Hi, we are a self storage company (www.boxie24.com) and for every url (500 url's) we use 1 head image containing the keyword of the url, so for instance: https://www.boxie24.com/en-us/self-storage-west-village the main image on top is self-storage-west-village-sm.jpg. It was uploaded months ago. Now we are adding more images between the content. But we call them: self-storage-west-village-sm.jpg as well and self-storage-west-village-boxie24-storage-sm. But for almost every url we have "duplicate image name". Is that bad and should we fix it or is it ok? It are different images though. I noticed it today, the images have the same name
Image & Video Optimization | | Boxie24TEAM0 -
Would you recommend changing image file names retroactively?
We'll be optimizing file names moving forward, but it hasn't been done in the past. I have probably 1,500 that would need to be changed, so want to make sure it's a valuable use of time/worth the effort. 🙂 Also, has anyone used Media File Renamer for wordpress? Seems this would be a good way to rename files without needing to reupload everything. Thanks!
Image & Video Optimization | | jennafrye0 -
Https lock broken possibly due to absolute http header footer image links.
To make the https lock secure, can I make my website header and footer image URLs to relative? I have read that we need to have absolute URLs for images for good SEO. In our old ecommerce platform we made http image urls for http pages and https image urls for https pages. For our new platform this is not a standard feature and we will have to pay for customizations which we don't have any more budget for that. So will making image URLs relative create any other problems?
Image & Video Optimization | | rbai0 -
Can you get rich snippets for Youtube hosted videos?
My website has several videos, mostly product reviews and tutorials. I'd like for these videos to show in the SERPs with rich snippets, but I am hosting them through Youtube. What is your experience with Youtube hosted videos? Do they generate rich snippets? Or will Google always rank the Youtube video over your web page?
Image & Video Optimization | | TMI.com1 -
Local Search Clean up Done. Now Best Way to Index?
I have spent hours doing some local search clean up and have a list of all the URLs to index, about 75. Is there a place I can dump these to get them all indexed quickly or do I have to wait for the hand of Google to come down and bless me with indexing. I don't want to dump all these to Google +, Facebook, or Twitter; that would just be wrong. Any ideas for fast indexing. I want them to all get indexed before the business address changes in a couple years 🙂
Image & Video Optimization | | photoseo10 -
Google maps displaying wrong image
Hi, I couldn't figure this out, how do i change image that shows up on the right side for maps results, do i change it in my Google places account ?(which i did and and its a first one) or in Google plus, i just cant get it? Thanks for help.
Image & Video Optimization | | Davidmez0 -
H1 image
Hi, I was talking to a web consultant today that teaches SEO, he said that an image is ok as an h1 tag as long as it has an alt tag. This is something new to me and something that I've always tried to avoid. Does this now work? Thanks
Image & Video Optimization | | brightonseorob0 -
Will putting images in a light box or photo gallery affect my image SEO?
A website that is very image heavy and would like to enhance the user experience with a photo gallery. How will this affect the indexing of these photos? Can I still add alt. tags and title tags to these images?
Image & Video Optimization | | Unidev0