Automatically Adding Alt Tag to Images
-
Automatically Adding Alt Tag to Images
After hours of research I think I found an answer on how to Automatically Add Alt Tag to Images with out a plug in or creating special code. I try to minimize the use of plug ins
My concern is that I also read on that if a URL is uploaded without hyphens, it will rendered in the Database as %20% in place of the spaces or it will keep the spaces. Does this apply also to image URLs?
My site is extremely image oriented so I want to automate as much as possible the process of getting an image from my camera to a web page
I Use spaces in the image name (not hyphens) prior to uploading into WP Media Library from my local hard drive. WordPress replaces the spaces with hyphens for the file name but leaves them in place for the alt tag.
You have to insert your image directly into the page/ post with a blank alt tag. It has to pass thru the Media Library first
For this to work, image cannot be uploaded via plugin. It has to be inserted from WP Media Library directly to the page/post after it was uploaded into the WP Media Library.
I want the search bots to see a filename with hyphens and alt text without hyphens. This is how it looks in HTML. I use the same file name and alt text because in my case, there is no need not to
<img class=”alignnone wp-image-7377″ src=”https://user.server.com/wp-content/uploads/2014/11/elk-railing-panel.jpg” alt=”elk railing panel” width=”127″ height=”100″> ( I changed user and server for this example)
Seems to work like a charm for my application anyway, anyone see a problem doing this?
- The topic ‘Automatically Adding Alt Tag to Images’ is closed to new replies.