Adds support for GitHib Gist embeds in WordPress.
Two primary features.
- Adds styles to make GitHub Gists look pretty within WordPress.
- Adds shortcode capabilities to embed GitHub Gists into posts and pages, even support for specific files within a Gist.
Within a post or page, simply use the following shortcode by supplying the URL of the Gist you want to show.
[gist url="https://gist.github.com/manovotny/5014426"]
If your Gist has multiple files, you can also tell the shortcode to only display a certain file within the Gist, like so.
[gist url="https://gist.github.com/manovotny/5014426" file="find-this-line-in-load-styles.php"]
There are two ways to install WordPress plugins: via the WordPress Dashboard (recommended) and via FTP.
Installing via the WordPress Dashboard is recommended because this process makes sure all the file and folder permissions are set correctly.
- Download the plugin.
- In the WordPress Dashboard, locate the Plugins menu.
- In the Plugins menu, click on Add New.
- On the Add New page, click on the Upload link at the top of the page.
- On the Upload page, locate the
wordpress-gist-master.ziparchive (zip) on your computer ()downloaded in Step #1) and click Install Now. - On the successful upload page, click Activate.
- Download the plugin.
- Unzip the
wordpress-gist-master.ziparchive on your computer. - Connect to your server via S/FTP.
- Upload the
wordpress-gist-masterdirectory to the/wp-content/plugins/directory on your server. - In the WordPress Dashboard, navigate to the Installed Plugins page under the Plugins menu.
- Locate WordPress Gist and click Activate.
This plugin has been tested with the following.
Other versions / themes may or may not work.
- WordPress 3.5+
- Themes:
- Standard 3.0+
- TwentyThirteen
