Alt Text (itemprop)

Mauer Themes Support Bild Alt Text (itemprop)

This topic contains 3 replies, has 2 voices, and was last updated by  Paul 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2302

    steinmann
    Participant

    Hi Paul

    I’m not sure, but it can it be, that the ALT Text that I but to the medias don’t get out ?

    Thanks for your Help
    Mic

    #2521

    Paul
    Keymaster

    Hi Mic,

    You are right, the galleries seem to not output the alt tag.

    I’ll fix that in the next update. In the meantime, please do the following:

    In your Admin Panel go to ‘Appearance’ -> ‘Editor’, find the functions.php file in the list on the right.

    Locate the following string (if you are using the latest version of the theme, it is string 513):
    $output .= "<img src='" . esc_url($img_reg[0]) . "' itemprop='thumbnail' />";

    Replace it with the following string:
    $output .= "<img src='" . esc_url($img_reg[0]) . "' itemprop='thumbnail' alt='" . get_post_meta($id, '_wp_attachment_image_alt', true) . "'/>";

    The end result should look like this — see screenshot.

    Click the ‘Update file’ button.

    Regards,
    Paul

    #2592

    steinmann
    Participant

    same problem in the new theme Stills …

    #2611

    Paul
    Keymaster
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.