Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2018-07-03 02:14:27

LifeIsABeach
Member
Registered: 2013-05-28
Posts: 42

image alt tag vs title tag

Is there a way of using the metadata from "Title" or some other metadata field to populate the image "alt" tag rather than the "title" tag.

Everything I've learned and read about the "title" tag in terms of SEO is that is has no real juice. It's the "alt" tag that counts and that tag should have thoughtful non-spammy content.

Thanks for any assist.

pj

Offline

#2 2018-07-03 06:09:17

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: image alt tag vs title tag

Presently, we populate the 'alt' attribute with the image file name, mostly to ensure it is never empty, as many users do not include captions. The best way to ensure this attribute is useful then, is to craft descriptive file names for your images.

Additionally, images are wrapped in a FIGURE element, which also contains a FIGCAPTION element, containing whatever information you've configured for the "Caption" setup in your album template, ensuring that your caption is paired with your image for SEO purposes.


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2018-07-03 09:16:29

LifeIsABeach
Member
Registered: 2013-05-28
Posts: 42

Re: image alt tag vs title tag

I am currently changing over old modified CE galleries that I had mildly modified for SEO purposes. The site did extremely well for many years, #1 for the most part in all of the SERPs, and then for whatever reason, it died in the ranks. Not sure why, but it doesn't matter. I had to move away from CE.

It would look better if we were able to have the ability to use plain text for the alt field if it is available. In CE days, that's either the way it was, or, I modified the template page(s) so that's the way it was -- I can't remember which. And it worked great and looked great in Google Image search results.

I did this because of how Google images will display the alt info when you are browsing. I don't like using a file name there. I want plain text. It looked better, and based on the tests I've done, is preferred by Google.

If this isn't possible or is not something you want to consider, then what would I need to modify to accomplish this?

Isn't there a way to have a custom metadata template for LR? For example, I have an Instagram third party plug-in for LR that provides a field for #hashtags. It would be nice to have a template that would allow us to have these few additional fields to use for something like "alt" tags, wouldn't it?

Thanks for your time.

pj

Offline

#4 2018-07-05 01:43:20

LifeIsABeach
Member
Registered: 2013-05-28
Posts: 42

Re: image alt tag vs title tag

Is there a file I can modify to change the content of the "alt" tag to the content in the img "title" tag?

Are there any other fields available in metadata that I might identify and use for the "alt" tag?

Offline

#5 2018-07-05 05:19:05

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: image alt tag vs title tag

The files are in backlight/modules/pangolin-album/fragments. You should back up a file before making edits. And we do not actually endorse users making such changes. It's not entirely a violation of warranty situation, but support issues relating to such modifications, we may choose not get involved in.

I will earmark this for future consideration, and see whether there's a reasonable way of expanding this without turning the UI or the underlying code into spaghetti.


Matt

The Turning Gate, http://theturninggate.net

Offline

#6 2018-07-06 04:06:25

LifeIsABeach
Member
Registered: 2013-05-28
Posts: 42

Re: image alt tag vs title tag

Many thanks, Matthew. Greatly appreciated.

Let me take this opportunity to say the ability to publish within Lightroom and use the engine you have created is an excellent combination for me. Frankly, I would be lost without it. I publish a lot of images over a variety of channels on a regular basis. Having looked at your coding in these various elements and the HTML it generates, I've been impressed with the code and your programming skills. As a result, I've been a loyal customer for quite a few years. As expressed in these forums over the years, I always want to be comfortable with the idea that I won't have to switch gears too often. I'm always in hope you will continue to support this product for the years to come. Thank you for what you do.

pj

Offline

#7 2018-07-06 07:13:12

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: image alt tag vs title tag

Thanks! We plan to keep it up, and Backlight 2 is progressing nicely, so definitely some life left in us. ;-)


Matt

The Turning Gate, http://theturninggate.net

Offline

#8 2018-07-07 04:23:16

LifeIsABeach
Member
Registered: 2013-05-28
Posts: 42

Re: image alt tag vs title tag

Follow up question:

Does Okapi and Pangolin differ in terms of how the img alt and title tags are populated?

Offline

#9 2018-07-07 04:40:33

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: image alt tag vs title tag

comparing the two, it looks like they handle the alt and title tags the same:

alt="<thp>echo $img_alt</thp>" title="<thp>echo $img_title</thp>"

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#10 2019-10-20 11:51:48

LifeIsABeach
Member
Registered: 2013-05-28
Posts: 42

Re: image alt tag vs title tag

Hello Matthew? Just wanted to say I still am in need of being able to use different content for the alt tag for SEO. Older modified pages of versions of CE performed better with plain text vs filename content. In my case, using content from the title tag works. I don't want to go back to hacking the code to make this work. I am a long time used of TTG products. Please consider option.

Thank you!

Offline

#11 2019-10-20 12:05:06

tgalex
Member
From: Saline, Michigan
Registered: 2016-06-22
Posts: 102
Website

Re: image alt tag vs title tag

Matthew and Rod - in light of Daniel’s information regarding ADA compliance in this Backlight 2 post today:  http://community.theturninggate.net/vie … p?id=10509
it would seem even more appropriate to find a way to allow plain text for the alt tag on photos - i.e. the Title field, as this is one of the ADA compliance points cited.

Thanks.

Last edited by tgalex (2019-10-20 12:06:47)

Offline

#12 2019-10-20 14:56:22

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: image alt tag vs title tag

That would be for Matt and Ben, they are the developers. I’m just a user with way too much time on my hands wink


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2019-10-21 03:05:55

LifeIsABeach
Member
Registered: 2013-05-28
Posts: 42

Re: image alt tag vs title tag

I might as well ask this now in case this next version doesn't address this issue with the alt tag:

Does anyone know which of these files I need to hack to change the alt tag content to whatever is in the meta "title"? Any other info appreciated.

backlight/modules/pangolin-album/fragments

Thank you!

pj

Last edited by LifeIsABeach (2019-10-21 03:08:19)

Offline

#14 2019-10-21 06:54:44

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: image alt tag vs title tag

Do you use backlight or backlight 2. With the later, you can replace the entire gallery with phplugins and the API function album_top(). This way you don't have to hack any files and can change the 'alt' attribute to your liking.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#15 2019-10-22 03:23:54

LifeIsABeach
Member
Registered: 2013-05-28
Posts: 42

Re: image alt tag vs title tag

Excellent! I use Backlight 2.

Any chance I can get the specifics on what I need to change/add?

THANK YOU!

pj

Offline

#16 2019-10-23 03:09:48

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: image alt tag vs title tag

Since you are using Backlight 2, this thread should be in the Backlight 2 forum. I'll move it over.

This is an example how you can customize single page view: https://lab.danielleu.com/blog/customiz … page-view/. The work necessary will be very similar for your gallery. Which gallery type do you use? Do you have a link? I'll try to see if I can get you a basic example. But this might take a week or two as I'm busy preparing a show.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#17 2019-10-24 11:47:14

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: image alt tag vs title tag

Ooookay. Because conversations are difficult to track when split between tickets, I'm going to close this thread.

If'n yous want to discuss ADA compliance, please follow up here:
http://community.theturninggate.net/vie … p?id=10509

I'll make a post there to sort of attempt to direction conversation into something I find personally useful.


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB