• Resolved vsacad

    (@vsacad)


    I think there is some issues with WP “Create New Post”.

    I will explain it as follows:

    1. First I uploaded the images to be inserted in my new post.
    2. Gave them “Alt” tag as required.
    3. Then I created the post.
    4. Inserted those images related to the post, which I uploaded already in Media with appropriate “Alt” tag.

    But there is a problem. It does not show the Alt tag value in source code, after publishing that post. I tried different methods, but could not find proper solution for it.

    The alt tag is shown for the image directly when I click that image and open it up in web browser, but it does not show in that post, where I had inserted those images.

    I am using Gutenberg with Blocksy for my website. When I create new post in WP, the Gutenberg block shows Alt tag field to insert the relevant tag in that field, but when I insert it in that field, it does not show in “View Source Page” in browser.

    What is the problem? Am I doing something wrong! Is my method wrong!

    Kindly help.

    • This topic was modified 7 months, 1 week ago by James Huff. Reason: moved to Accessibility since this is an Accessibility issue

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • I cannot reproduce what has been described for me. I used the method you described in a WordPress without any plugins with the standard TwentyTwentyFour theme. Even with Blocksy as my theme, this doesn’t happen to me.

    I would therefore guess that something is influencing your behavior. Deactivate all plugins as a test and then insert the image into the page again.

    Thread Starter vsacad

    (@vsacad)

    @threadi
    Ok Sir.
    I will try and reply here!
    Thanks!

    Thread Starter vsacad

    (@vsacad)

    @threadi

    I think I will reframe my explanation.
    Before that some details of my website environment.
    1. updated to latest WP version
    2. using blocksy theme with gutenberg

    When I create a new post and start editing it in editor mode, suppose I insert an image into the content of the post.
    When I insert the image, I see a box in settings-alternative text. So I write relevant alt text in that box.
    Then I publish the post.
    The source code of this post shows alt tag properly for that image which I had inserted in to the post.

    Now I come to my WP dashboard and open media library.
    I click on that image which I just inserted into the published post, the alt tag for that image is missing. The alternative text box is empty.

    It means that the image is still missing its alt tag and so when google indexes my site images, it shows me less SEO score, because that image has no alt tag.

    So what I have to do is to first upload the required images to my particular post, give them relevant alt tags and then insert them into the post or page.

    So I wonder, why that alternative text box is given in settings in editor mode for the images?

    Please explain. I am not technically knowledgeable in WP but I thought this explanation might help in removing the problem.

    Please forgive me if I am wrong or doing something stupid during publication of the posts.

    • This reply was modified 7 months, 1 week ago by vsacad.
    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    The Media Library is its own catalog. Alt tags added there become the default for that media when inserted, nothing more.

    You can have one alt tag entry (or no alt tag entry) for the media’s entry in the Media Library, and you can override that on a per-post/page basis by providing your own alt tags when inserting that media into the post/page you’re writing/editing.

    Having no alt tags associated with media in the Media Library doesn’t affect the search ranking of your posts/pages if you’ve provided your own alt tags when inserting that media into that post/page you’re writing/editing.

    What’s in your site’s source output is what matters. Google doesn’t have access to your site’s Media Library.

    Thread Starter vsacad

    (@vsacad)

    @macmanx

    Oh…! Is it so?!
    Thank you so much enlightening me.
    Its so important information, I was ignorant of!
    Thanks again for quick reply.
    Your explanation will now save my tons of work while publishing the posts and inserting images.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with Alt tag for images in WordPress’ is closed to new replies.