GitHub Gists Sidebar Widget



A sidebar widget to display your public gists from GitHub. Allows for optional display of creation date and link back to your GitHub profile page. Uses v3 of the GitHub API.

Potential Enhancements

I plan on including the Transients API in an upcoming releaseonce I figure out exactly how they work. Otherwise, feel free to suggest.



This section describes how to install the plugin and get it working.

  1. Upload the gist-sidebar-widget folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Drag the widget to your sidebar and input your username, number of gists, and options for displaying creation date and a link back to your GitHub profile.


It displays your public gists from GitHub on the sidebar, linking to each of them on GitHub.

Sure can. There are four classes to look at to add to you CSS.

  • Each list item

  • has the class gist_item

  • Each link within the

  • has the class gist_link

  • The optional creation date is wrapped in a with the class gist_date

  • The optional link to your GitHub profile is in a

    with the class github_link

Pretty much, yeah.

Leave a Reply

Your email address will not be published.

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Most Viewed Posts