WordPress.org

Ready to get started?Download WordPress

Forums

Missing image alt-tags in galleries and page-attachments (5 posts)

  1. photopoet
    Member
    Posted 2 years ago #

    Hi!
    After days of fruitless search I thought I might possibly get help here.
    I just set up my first self-hosted website. the poetic dimension of photography is a photographic portfolio site. In the process I read a lot about the importance to improve seo criteria and how especially image based sites need to have image alt-attributes/-tags. So I diligently filled meaningful alt-texts for each photograph in the media library (most of them after uploading I think).

    The problem is that all the HTML-pages showing the fullsized images do not contain these alt-texts. If the fullsize images are accessed by clicking a smaller version in the shortcode-gallery of a blog post then the rendered alt-attribute is merely a duplication of the title-attribute. If accessed via the gallery of images attached to a page, both, title and alt tags seem to be absent (if my reading of Firebug is correct). Accordingly xml image-generators (and search engines I suppose) also find only these identical title and alt tags when crawling the galleries and the wp-content/uploads section.

    I use the photonexus premium theme. But as I have read about certain title-alt-tag-issues as well as missing alt-tags in galleries concerning earlier WP versions (the threads that I could find were unresolved) I think it is probably not a theme issue. Of course I may be wrong here.

    Just to outline the site's structure: Images are attached to the pages that are listed by a photo menu in the sidebar (and not to posts). In addition the images are included in blog-posts via the gallery shortcode (and not inserted) - in a smaller version.

    Interestingly enough alt-texts do appear in the sitemap (and the HTML-pages I guess) for the thumbnails 150x150 . They are generated by Timthumb as far as I understand.

    Is there a way to have the image alt-tags as specified in the media library rendered in HTML-pages for the fullsized images, and have them updated if edited in the media library?

    I must add, I am not capable of coding, but I could do some minor alterations if someone told me exactly what to do.

    I will greatly appreciate any help or clarification!

  2. Ros
    Member
    Posted 1 year ago #

    Has anyone come up with a solution for this issue? It's pretty crucial for site SEO for photographers.

    Incidentally, I found out about the problem through analysing my Photography Scotland website with Bing's SEO analyser tool...it's very useful!

  3. Max
    Member
    Posted 1 year ago #

    @fiddledidee, you have a javascript that prevents the inspector working when one right-clicks, so cant really look at your site without doing a lot of work, if you remove that I can.

    @photopoet: I think it is a theme issue as this is the HTML that is being used for the light-box.

    <img id="fancybox-img" src="http://www.poeticdimension.com/wp-content/uploads/2012/01/winter-horizon-black-and-white.jpg" alt="">

    The fact that the alt-tag is there, but not populated would lead me to suspect a coding error in the theme.

    You mention it is a premium theme, I would say ensuring correct functioning of things like this would be the theme vendor's responsibility, a premium theme costs money and they will help you out, as I am sure they also appreciate the importance of accessibility tags on sites like this.

  4. photopoet
    Member
    Posted 1 year ago #

    @Max
    Thanks for looking into this.

    The fact that the alt-tag is there, but not populated would lead me to suspect a coding error in the theme.

    You might very well be right, I just do not know. As I said the problem occurs whereever full size images are involved, not only with the light-box. However, fiddledidee reports having the same issue with the Modularity Light theme.

    You mention it is a premium theme, I would say ensuring correct functioning of things like this would be the theme vendor's responsibility, a premium theme costs money and they will help you out, as I am sure they also appreciate the importance of accessibility tags on sites like this.

    You are absolutely right! But guess what, I wrote to the author, but sadly never got any response. I resorted to this premium theme as I had not found any open theme that I regarded as suitable for an artistic photosite. To me it is still unclear if this issue arises from a faulty theme or from the part of the WordPress code that deals with images and image attachments.

  5. Ros
    Member
    Posted 1 year ago #

    @Max, thanks for your reply. I tried disabling the Lightbox plugin which I had been using, and that seemed to resolve the problem. So now I'm looking for another gallery plugin :)

Topic Closed

This topic has been closed to new replies.

About this Topic