Events Made Easy Forums Bug fixed or feature request implemented meta tag twitter:card is wrong

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #61808

    Hi Franky,

    eme_functions.php contains this line:
    <meta name="twitter:card" content="#_EVENTIMAGEURL" />

    This is wrong and it breaks Twitter cards. The twitter:card value chooses one of a few predefined card formats, and the allowed values are “summary”, “summary_large_image”, “app”, or “player”. See

    I got it to work by removing that line and adding my desired value in the eme_event_html_headers_format option. I also added twitter:site and twitter:url – don’t know if these are needed for it to succeed as well. You could generate twitter:url in eme_functions.php but twitter:site has to be user-supplied.

    This works:

    I think you can’t know which value the user wants, you might offer the above choices as options in the plugin settings or simply not output that line


    thanks for this (and sorry for the late reply, it seems this topic got stuck in “pending for approval”).
    If I replace twitter:card with twitter:image, then I think that should be ok, no?
    But based on the fact, shouldn’t I just use twitter:card “summary” then?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.