Image Alt Tag

#272169
Viewing 5 replies - 1 through 5 (of 5 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting us.

    We automatically add the ALT texts only to the images that are present in the WordPress editor area.

    I tested your website using our External SEO Analyzer and the image missing the ALT text is not in the WP editor area, rather, it is in the header section of the website (website logo).

    Here’s a screenshot:
    https://i.rankmath.com/XaWOL1

    You can manually add the ALT text to the logo to fix the issue.

    Hope this helps.

    Thank you.

    Thanks, further more can you please guide me how and what i have to add in which section of theme editor

    Anas
    Rank Math business

    Hello,

    You can manually add the ALT text by going to the Media Library in WordPress.

    Select the logo image and add the ALT text.

    Here is a screencast for your reference:
    https://i.rankmath.com/KElkML

    Once done, clear your website cache and check the website with https://rankmath.com/tools/seo-analyzer/

    I hope this helps. Looking forward to helping you.

    `<div class=”logo”>
    <a href=”<?php echo esc_url( home_url() ); ?>/”>
    <img src=”<?php if($logo = get_option(‘dt_logo’)) { echo $logo; } else { echo get_template_directory_uri(). ‘/assets/img/dooplay.png’; } ?>”>
    </a>
    </div>

    Nigel
    Rank Math business

    Hello,

    Thank you for providing the snippet from your template file.

    You can add an alt tag inside the image tag. The edited snippet should look similar to this:

    
    <div class=”logo”>
    <a href=”<?php echo esc_url( home_url() ); ?>/”>
    <img src=”<?php if($logo = get_option(‘dt_logo’)) { echo $logo; } else { echo get_template_directory_uri(). ‘/assets/img/dooplay.png’; } ?>” alt="moviestango-logo">
    </a>
    </div>
    

    I hope that helps. Please let us know if you have questions. We are here to help.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Image Alt Tag’ is closed to new replies.