• Resolved Ian

    (@ipgill)


    Dear support team,

    Could you please help me with adding Image Alt attribute on the home page icon menu thumbnails?

    It shows up for slider images but not for the icon thumbnails.

    Thank you so much

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @ipgill ,

    Generally, the Icon Menu is meant to show icons that don’t need alt text. There aren’t options to add alt text but the link does have a title. Potentially, you could create a child theme to obtain and add text via the wp-content\themes\virtue\templates\home\icon-menu.php template.

    Thread Starter Ian

    (@ipgill)

    Thank you for your help.

    Because the website is using thumbnails instead of icons in the icon menu, we would like to add alt attribute to these. We do have a Child theme however unsure how to add alt text attribute to these thumbnails. Could you please help me with the code?

    Hello @ipgill,

    If you need help with the code, you should enlist the help of a developer. However, as I previously mentioned, there is a file you could replace using a child theme. The file at wp-content\themes\virtue\templates\home\icon-menu.php displays the image at line 27. You’ll have to add the alt text on this line programmatically.

    echo '<img src="'.esc_url($icon['url']).'"/>';
    
    Thread Starter Ian

    (@ipgill)

    Thank you so much. I managed to resolve it with this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image Alt attribute on homepage icon menu’ is closed to new replies.