Skip to content

webdesignPOP/wordpress-gist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Gist

Description

Adds support for GitHib Gist embeds in WordPress.

Two primary features.

  1. Adds styles to make GitHub Gists look pretty within WordPress.
  2. Adds shortcode capabilities to embed GitHub Gists into posts and pages, even support for specific files within a Gist.

Usage

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"]

Screenshot

WordPress Gist

Installation

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.

Using the WordPress Dashboard

  1. Download the plugin.
  2. In the WordPress Dashboard, locate the Plugins menu.
  3. In the Plugins menu, click on Add New.
  4. On the Add New page, click on the Upload link at the top of the page.
  5. On the Upload page, locate the wordpress-gist-master.zip archive (zip) on your computer ()downloaded in Step #1) and click Install Now.
  6. On the successful upload page, click Activate.

Using FTP

  1. Download the plugin.
  2. Unzip the wordpress-gist-master.zip archive on your computer.
  3. Connect to your server via S/FTP.
  4. Upload the wordpress-gist-master directory to the /wp-content/plugins/ directory on your server.
  5. In the WordPress Dashboard, navigate to the Installed Plugins page under the Plugins menu.
  6. Locate WordPress Gist and click Activate.

Compatibility

This plugin has been tested with the following.

Other versions / themes may or may not work.

Credit

License

About

Adds support for GitHub Gist embeds to Standard.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors