We're merging with GenerateBlocks! Learn more here.

[Support request] Add Image Alt Text

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Add Image Alt Text

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24184
    Kevin
    Participant

    Hi Tom and Team

    SEO is hard and sometime small things would help. Is there any way to get the image alt text, i added in the mediathek and which are shown correctly on GP, to all the image sizes which are shown on Homepage or Tag Page.

    I know that on my special pages and homepage i use WPSP, but on Tag pages are just the GP archive.

    Any idea or php script to add?

    Thx and best
    Kevin

    #24199
    elvin
    Moderator

    Hi,

    SEO is hard and sometime small things would help. Is there any way to get the image alt text, i added in the mediathek and which are shown correctly on GP, to all the image sizes which are shown on Homepage or Tag Page.

    <img> alt attribute value is automatically fetched from the image’s “Alternative Text” in your media library.
    https://github.com/tomusborne/wp-show-posts/blob/35e410d7800273fc66f211c0f80d553e95d17f83/inc/functions.php#L191

    GP archive also fetches the alt attribute the same way.

    If you see a post within the list that doesn’t have an “alt” attribute value, that most likely means there’s no “Alternative Text” on your image file in your media library. You set this by finding the image in the media library and setting a “Alternative Text” on it.

    That said, You shouldn’t need a snippet or script for this unless you want to fetch your alt attribute value from a different source other than the “Alternative Text”.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.