WordPress.org

Forums

Yoast SEO
W3C Validation for Twitter (5 posts)

  1. simonbennett
    Member
    Posted 2 years ago #

    Any ideas for this error?

    Bad value twitter:card for attribute name on element meta: Keyword twitter:card is not registered.

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. d3k1d
    Member
    Posted 2 years ago #

    I actually do have the same problem / question...

    Bad value twitter:card for attribute name on element meta: Keyword twitter:card is not registered.
    Bad value twitter:site for attribute name on element meta: Keyword twitter:site is not registered.
    Bad value twitter:creator for attribute name on element meta: Keyword twitter:creator is not registered.
    Bad value twitter:description for attribute name on element meta: Keyword twitter:description is not registered.

    12 Errors resulting on using the meta card twitter option... :(

  3. boborg
    Member
    Posted 2 years ago #

  4. jochem28
    Member
    Posted 2 years ago #

    It's true. Facebook uses the same.
    To solve the issue:

    1. navigate to the following directory within your wordpress installation:
      /wp-content/plugins/wordpress-seo/frontend
    2. In that directory, open the file called "class-twitter.php"
    3. search for the text "meta name" (without quotes) and change all occurrences to "meta property"

    Issue solved.

  5. boborg
    Member
    Posted 2 years ago #

    But I hope Yoast makes the change also or we will loose the change after plugin update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic