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 -
Images robots.txt in Webshop
Hi Guys, i'm considering to prevent Google to crawl all the images on a webshop (3,432), because a the amount of pages that have to me crawled. Will this affect any search results? Thanks!
Image & Video Optimization | | Happy-SEO0 -
Is it a legal requirement for a website to have alt tags for all images?
Someone told me it is a legal requirement for a website to have alt tags on all of their images. Is this right? Or is this bad for SEO?
Image & Video Optimization | | RachelBev0 -
Optimizing Images Already on Website
I am familiar with tools to reduce jpeg images file size etc before uploading to website. After jpeg images are uploaded to a website, what can be done to enhance load speed of these images? Any software to compress images on a website already?
Image & Video Optimization | | khi50 -
Optimizing Images
I have realized that our images are way to big. I would like to resize them and upload back again but I am afraid to do it as every image in wordpress is uploaded and has own link and then all this links will be not found. Is there some other way how to do it without a plugin. Or it is not a problem that I will delete that old large images and then upload the new smaller? Thank you very much for any advice Iris
Image & Video Optimization | | Rebeca10 -
How businesses get local citations without submitting them?
How do some businesses get listed in directories like YellowBook, SuperPages, MerchantCircle, etc. without submitting their information. For example, my dad's company listed themselves in YellowPages and Google Places years ago, but also show up in the ones listed above without having submitted the information to them or having paid anyone else to do it...
Image & Video Optimization | | ChaseCameron0 -
None of my images are being indexed by google.
None of my images are being indexed by google. Here is a link to one of my site images : http://www.yourlamode.com/sitemap_images.xml Its been uploaded for more then 5 days
Image & Video Optimization | | spidersite0 -
How do you bounce back from a loss in image search?
Looking for any help in understanding what I can do to get my images back up in the images index. My site took a hit last month which I've been working to get back up but nothing has seemed to push the needle. Has anyone else experienced such a loss in the image index before? kVTuL.png
Image & Video Optimization | | DotCar0