Twitter Widget Shortcode

Summary

The Twitter Widget shortcode (uwsa_twitter) allows you to add a Twitter Widget to your page.The Zuse Twitter module available, also uses this shortcode. This Twitter widget shortcode allows you to embed any public Twitter timeline.


This shortcode is not enabled by default. It must be enabled by an admin on each community site that will use it.

Required Attributes

username

This is the username of the twitter user. It is used for the backup link in the case that the widget timeline is not generated on the page correctly.

Optional Attributes

tweetlimit

Number of tweets to display.

Default: 3

border

Control if the border displays.

Default: no border

header

Control if the header, "Tweets," displays.

Default: no header

Control if the Tweet Reply footer displays.

Default: no footer

scrollbar

Control if the scrollbar displays.

Default: no scrollbar

id

This is the Widget ID. You must log into Twitter and generate a Twitter Widget to get this ID. You only need to use this parameter if you need to override some widget settings for some reason. Use the Light theme and use #990033 as the Link Color.

Look at the HTML generated by Twitter, and copy the data-widget-id attribute into the id attribute of the uwsa_twitter shortcode.

Examples

[uwsa_twitter id="661623045329707009" username="UWFlexOption" /]


[uwsa_twitter border="true" header="true" scrollbar="true" footer="true" tweetlimit="7" id="661623045329707009" username="UWFlexOption" /]