Skip to content

Wordpress plugin that adds the shortcode, [itchio-button].

License

Notifications You must be signed in to change notification settings

OmiyaGames/itchio-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Itch.io Button Shortcode

Generates a button to prompt the user whether they want to purchase a game on Itch.io or not.

Usage

Create a download button for the game, Air Flip Drive by Omiya Games.

[itchio-button game="airflipdrive" user="omiyagames"]

Create a buy button for the game, Air Flip Drive by Omiya Games.

[itchio-button game="airflipdrive" user="omiyagames" text="Buy Now"]

Create a download button for the game, Air Flip Drive by Omiya Games, that's 1280 pixels wide, and 720 pixels tall.

[itchio-button game="airflipdrive" user="omiyagames" width="1280" height="720"]

Options

The following options are supported:

game

(string) (required) The name (slug) of the game. For example, if the URL of the game is "https://omiyagames.itch.io/airflipdrive," then fill this field with the string that comes after "itch.io/," i.e. "airflipdrive."

user

(string) (required) The username (slug) of who the game belongs to. For example, if the URL of the game is "https://omiyagames.itch.io/airflipdrive," then fill this field with the string that comes in between "https://" and ".itch.io/," i.e. "omiyagames."

text

(string) (optional) The text that'll appear on the button.

Default: "Download"

width

(integer) (optional) The width of the pop-up that appears after clicking the download button, in pixels.

Default: 650

height

(integer) (optional) The height of the pop-up that appears after clicking the download button, in pixels.

Default: 400

Known Issues

  • Only one button can be created per webpage (so be careful about adding this to a widget). The shortcode does not create a unique ID for each button.

References

About

Wordpress plugin that adds the shortcode, [itchio-button].

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages