Skip to main content

Twitter

The arguments that will be used for Twitter

Arguments

The following options are supported by this plugin for Twitter social share.

twitter_card_type

The content for twitter:card

twitter_handle

The content for twitter:site and twitter:creator

creator_handle

The content for twitter:creator

Used with twitter_card_type="summary_large_image" cards

twitter_title

The content for twitter:title

twitter_image

The content for twitter:image

twitter_image_alt

The content for twitter:image:alt

twitter_desc

The content for twitter:description

twitter_attr_name

Define attribute name for the Twitter set of meta tags.

The default attribute name for the twitter: set of tags is name e.g. <meta name="twitter:image" value="some-img.jpg">

So if you want to use property like Open Graph tags you can use:

twitter_attr_name="property" to produce <meta property="twitter:image" content="some-img.jpg">

twitter_comment

Display a custom HTML comment for the set of Twitter tags

Requires comments=true