• Resolved waterworks2

    (@waterworks2)


    Wondering if alt tags are needed on uploaded images that are used exclusively for Open Graph and Twitter images in WP? I ask because I have 1000+ images which is a lot of alt tags to add if it’s something I should have.

    I did a test and added an alt tag, and then shared the page via FB. On the FB post, I see there is no alt tag assigned to the image, even though I entered an alt tag in WordPress Media section for that image. Am I correct to assume Open Graph and Twitter Cards don’t require alt tags for images, or perhaps Yoast doesn’t support alt tag options for OG and TC specific images?

    Reference links:

    og:image:alt

    https://ogp.me/#structured

    twitter:image:alt

    https://css-tricks.com/essential-meta-tags-social-media/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support marcanor

    (@marcanor)

    The Yoast plugin does not currently support alt tags for social media images. Thanks for suggesting a new feature for our plugin! We’re actively using the bug tracking on our GitHub repository so your best next step would be to create a new feature request for our developers at https://github.com/Yoast/wordpress-seo/issues/new. You can create a new issue to submit your feature request. You will need an account to create one.

    Don’t forget to include the URL to this conversation in your feature request!

    Hi!
    If you can change your function.php file to add some code then you will have both twitters and fb alt meta:

    function yoastseo_social_img_alt() {
    ?>
    <meta name=”twitter:image:alt” content=”Your default twitter alt text here”>
    <meta name=”og:image:alt” content=”Your default facebook alt text here”>
    <?php
    }
    add_action( ‘wp_head’, ‘yoastseo_social_img_alt’ );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Are alt tags needed for OG and Twitter Cards’ is closed to new replies.