• wspivak

    (@wspivak)


    The alt tag for the header (and possibly body) image is missing from the rendered page.

    Can we adjust the great theme to be in compliance?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,
    When you select an image through WordPress media uploader there is always an option to add alt text.

    Thread Starter wspivak

    (@wspivak)

    Yes, and that is what is set for my jpg. A title and corresponding ALT tag.

    I then select:
    Appearance -> Customize -> Header Image
    Select the jpg I previously mentioned.
    Save.

    If you I look at any page rendered, that header image has no ALT tag.

    Thread Starter wspivak

    (@wspivak)

    Not being a real PHP programmer I found the errant code:

    functions.php:

    $html.=’height).'” width=”‘.absint(get_custom_header()->width).'” alt=”” />’;

    Notice, nothing being populated in the Alt tag.

    What is the correct php to get it to populate?

    Thanks

    Thread Starter wspivak

    (@wspivak)

    By the way did a kludge, but it doesn’t solve the long term problem. Add a text alt description.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Alt tag missing in header’ is closed to new replies.