Before you ask please READ THIS

Image alt attributes?

edited October 2016 in Photon Posts: 51
I just noticed all the alt attributes for my images are blank. Do you know how I can get those to show up?

I noticed your demo seems to be the same - e.g., :

<img src="http://photon.apollo13.kinsta.com/wp-content/uploads/sites/17/bfi_thumb/gallery4-mdy5fpkio1qej3hkwvx3sv45c4vnx066rhslgbj6d4.jpg" alt="">

Thanks!
Abby
Post edited by digitalmuse on

Comments

  • AirAir
    Posts: 10,970
    Hello:-)

    You probably are talking about images in bricks gallery that are generated by JavaScript. We don't copy alt attribute to them, as it won't be useful in any scenario. I think that adding them now, would require some redesign in way that galleries are generated.

    With kind regards.
  • Why don't you think it would be useful for SEO?
  • AirAir
    Posts: 10,970
    Cause it is generated much later then when page get indexed. Also if you disable JavaScript then gallery is generated with titles that would be probably indexed.

    I understand that you probably don't like my answer however when I was implementing this I had SEO in mind.

    With kind regards.
  • Huh, that's interesting. Do you have any suggestions then for how we can improve SEO for people searching on items that we have photographs of?
  • AirAir
    Posts: 10,970
    Can you show me example of your gallery or page in question?

    With kind regards.
  • Sure: http://davidbeifeld.photography

    I haven't done anything for SEO with it yet, so am just starting to work on that. I don't know a lot about how SEO works with image galleries like this, but I'd like to make it so that if someone searches for a country I've got an album for, or a specific item that I've got a photograph for - that this would show up.

    I've got titles for some of the pictures - not all, I can work on adding more in. Although, you mentioned the alt tags aren't created until after the page is indexed - so I'm guessing the same would be true of the H2 elements with the individual image titles?


    Any tips would be muchly appreciated. Thanks!
    Abby
  • AirAir
    Posts: 10,970
    Well I have rechecked what I have created two years ago, and I can tell that I was wrong. It could benefit from alt attributes, so I will work on it, but it won't be soon.

    As for HTML and titles, this is how HTML looks when JavaScript is disabled:
    
    <figure class="archive-item default-eff w2" data-genre-37="1" id="album-1365">
                <img src="https://cdn.davidbeifeld.photography/wp-content/uploads/bfi_thumb/1310214434-Czech-Rebublic-Cesky-Krumlov-mgz3mi4jqxlx53sdy2tm499m1hcjzxc1n7f7uhdmc2.jpg" alt="">            <figcaption>
                    <div class="center_group">
                    <h2 class="post-title">Czech Republic</h2>                    <div class="excerpt">
                            Prague and&nbsp;Cesky Krumlov Photo album                    </div>
    				                    </div>
                    <a href="https://davidbeifeld.photography/album/czech-republic/"></a>
                </figcaption>
            </figure>
    
    So title is available right on the spot, and ALT is missing. This is true for Albums list, single album is created a bit different.

    With kind regards.
  • edited October 2016 Posts: 51
    Wow, you are the best. Thank you! It might be 2 years old - but it looks amazing, I love this theme!

    Now I just have to get to work promoting it better so others can enjoy my Dad's photographs. I'll see what I can do about adding more titles to my pictures in the meantime.

    Post edited by digitalmuse on
  • Hi,
    Just dropped by to let you know that here is another one interested on ALT working (on single album). I didn't know it did nothing.
    Regards.
  • AirAir
    Posts: 10,970
    OK I have fixed "alts" and "titles" in albums list and single album. I will have to check few more things and I will release update hopefully next week.

    With kind regards.
  • You are, once again, the best. Thank you thank you thank you!!
Sign In or Register to comment.