The GitHub integration for WP Plugin Info Cards allows you to share practically any public GitHub repo.

{% hint style=”danger” %} A GitHub Personal Access Token is Required.

To avoid rate limit issues, a GitHub personal access token is required. I’ve written an article on how to retrieve a non-expiring GitHub personal access token. {% endhint %}

A GitHub Info Card can be added via the block editor or shortcode.

{% content-ref url=”enabling-github-info-cards.md” %} enabling-github-info-cards.md {% endcontent-ref %}

Layouts

The cards can be displayed in a Large or Card layout.

It features:

  • A top bar with language, license, and quick links.
  • An author bar with avatar, repo name, and author.
  • A stats bar with quick links to stars, forks, watchers, and current release.
  • A description.
  • A last updated bar and call-to-action.

Large Layout

The large layout is horizontally aligned and features a prominent call-to-action.

Card Layout

The card layout is center-aligned and features a prominent stats bar and call-to-action.

Themes

Here are the various themes for the GitHub Info Cards.

GitHub Light

GitHub Dark

GitHub Colorful

GitHub B&W

GitHub Custom

You can choose from several custom colors to make the GitHub card your own.

{% content-ref url=”enabling-github-info-cards.md” %} enabling-github-info-cards.md {% endcontent-ref %}

{% content-ref url=”../../shortcodes/github-info-card.md” %} github-info-card.md {% endcontent-ref %}

{% content-ref url=”../../blocks/the-github-info-cards-block.md” %} the-github-info-cards-block.md {% endcontent-ref %}

Was this article helpful?