Title: GamiPress &#8211; Button
Author: Ruben Garcia
Published: <strong>2019 年 12 月 5 日</strong>
Last modified: 2025 年 12 月 1 日

---

搜尋外掛

![](https://ps.w.org/gamipress-button/assets/banner-772x250.png?rev=2206358)

![](https://ps.w.org/gamipress-button/assets/icon-256x256.png?rev=2206358)

# GamiPress – Button

 由 [Ruben Garcia](https://profiles.wordpress.org/rubengc/) 開發

[下載](https://downloads.wordpress.org/plugin/gamipress-button.1.0.9.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/gamipress-button/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/gamipress-button/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/gamipress-button/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/gamipress-button/#developers)

 [技術支援](https://wordpress.org/support/plugin/gamipress-button/)

## 外掛說明

GamiPress – Button let’s you add activity triggers filtered by button clicks adding
new activity events on [GamiPress](https://wordpress.org/plugins/gamipress/)!

Note: This add-on is designed to award users for button clicks, if you want to award
them for link clicks, then you should check the [GamiPress – Link](https://wordpress.org/plugins/gamipress-link/)
add-on.

#### New Events

 * Click any button: When a user clicks on any button.
 * Click a button with a specific ID: When a user clicks on any button with a specific
   identifier (button id attribute).
 * Click a button with a specific Class: When a user clicks on any button with a
   specific class (button class attribute).
 * Get a click on any button: When the post/comment author gets clicks on any button.
 * Get a click on a button with a specific ID: When the post/comment author gets
   clicks on any button with a specific identifier (button id attribute).
 * Get a click on a button with a specific Class: When the post/comment author gets
   clicks on any button with a specific class (button class attribute).

Important: The unique buttons that trigger this activities are the buttons generated
by [gamipress_button] shortcode.

## 安裝方式

#### From WordPress backend

 1. Navigate to Plugins -> Add new.
 2. Click the button “Upload Plugin” next to “Add plugins” title.
 3. Upload the downloaded zip file and activate it.

#### Direct upload

 1. Upload the downloaded zip file into your `wp-content/plugins/` folder.
 2. Unzip the uploaded zip file.
 3. Navigate to Plugins menu on your WordPress admin area.
 4. Activate this plugin.

## 常見問題集

### Which attributes support [gamipress_button] shortcode?

[gamipress_button] shortcode supports:

 * label: The button label text.
 * type: The button type. Accepts ‘submit’, ‘button’ or ‘reset’
 * id: The button identifier.
 * class: The button CSS classes.
 * form: The button form attribute. If you don’t know exactly what is the purpose
   of this attribute leave it blank.
 * name: The button name attribute. If you don’t know exactly what is the purpose
   of this attribute leave it blank.
 * value: The button value attribute. If you don’t know exactly what is the purpose
   of this attribute leave it blank.
 * url: The URL to redirect the user after click the button.

Example: `[gamipress_button type="submit" label="Click here!" id="my-button" class
="awesome-buttons one-class other-class" url="https://gamipress.com/"]`

### How can I redirect a to another page on click the button?

[gamipress_button] shortcode has the attribute “url” that will redirect the user
after click the button.

Example:

    ```
    [gamipress_button label="GamiPress website" url="https://gamipress.com/"]
    ```

### Can this plugin buttons match my theme buttons style?

Yes, contact to your theme author to meet the CSS classes that your theme uses and
add them to the “class” attribute.

### Can this plugin buttons match my page builder buttons style? (Elementor, Divi, Breave Builder, etc)

Yes, contact to your page builder author to meet the CSS classes that page builder
uses and add them to the “class” attribute.

### Can this plugin work with custom elements?

Yes! GamiPress – Button is looking for elements with the class `gamipress-button`,
you can make it work with a custom element using the following code:

    ```
    <div id="{optional-id}" class="gamipress-button {optional-class} {optional-class-2}">Click Here!</div>
    ```

If you set an id attribute, triggers limited by specific ID will be triggered too.

Also, if you define more classes to the class attribute, triggers limited by specific
class will be triggered too.

## 使用者評論

![](https://secure.gravatar.com/avatar/dabcc2b4d638bb3be7894bf6e514ae04c1db1e199f49d37a12a5c8b4c8e83139?
s=60&d=retro&r=g)

### 󠀁[Can’t link to custom buttons](https://wordpress.org/support/topic/cant-link-to-custom-buttons/)󠁿

 [usefulmike](https://profiles.wordpress.org/usefulmike/) 2026 年 1 月 9 日 1 則
留言

I have read the documentation and I have tried so many times but when using Elementor
buttons with GamiPress buttons the ID’s never work no matter which order they are
in. I have had enough with trying to get GamiPress to work with Elementor and I 
think this was my sign to find an alternative.

![](https://secure.gravatar.com/avatar/f92de28024bb1b6c189ccdb3c1ad9b30469e3ecad3942a70491f6fefb4ee8564?
s=60&d=retro&r=g)

### 󠀁[This is so ridiculous!](https://wordpress.org/support/topic/this-is-so-ridiculous/)󠁿

 [monkeywisdom](https://profiles.wordpress.org/monkeywisdom/) 2021 年 1 月 3 日

The developer can’t even show people how to use his product! I would expect instructions
on what to add, in Thrive Architect, for “class” and “id.” His values don’t even
work. His videos go so fast, and he never explains what he is doing! Why would anyone
even use Gamipress for free?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
How do you add the correct id to the id field in Thrive Architect? How do you add
the correct class to the class field in Thrive Architect? He would say gamepress-
button and whatever you set the id to when creating the points type. It doesn’t 
work! When people ask him about how to do this in support, he tells them the instructions
are on the plugin page. They are not! I wouldn’t buy an ice cream soda from this
developer!

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/gamipress-button/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈GamiPress – Button〉的開發相關工作。

參與者

 *   [ Ruben Garcia ](https://profiles.wordpress.org/rubengc/)
 *   [ GamiPress ](https://profiles.wordpress.org/gamipress/)
 *   [ tsunoa ](https://profiles.wordpress.org/tsunoa/)
 *   [ Irene Berna ](https://profiles.wordpress.org/eneribs/)

〈GamiPress – Button〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/gamipress-button/contributors)
為這個外掛做出的貢獻。

[將〈GamiPress – Button〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/gamipress-button)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/gamipress-button/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/gamipress-button/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/gamipress-button/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/gamipress-button/)。

## 變更記錄

#### 1.0.9

 * **Improvements**
 * Improved check for redirection URL.

#### 1.0.8

 * **Bug Fixes**
 * Added security to shortcode.

#### 1.0.7

 * **Improvements**
 * Ensure redirection happens after ajax request is finished.

#### 1.0.6

 * **Improvements**
 * Added check to redirection URL.

#### 1.0.5

 * **New Features**
 * Added the “url” attribute to the [gamipress_button] shortcode.
 * Added the “URL” option to the Button block and widget.
 * **Improvements**
 * Removed the onclick attribute/option due security.

#### 1.0.4

 * **Improvements**
 * Added the label attribute on the shortcode generated on the requirements UI.

#### 1.0.3

 * **Bug Fixes**
 * Fixed type on the awards engine check.

#### 1.0.2

 * **Bug Fixes**
 * Fixed undefined text on the shortcode preview.

#### 1.0.1

 * **New Features**
 * Added a shortcode section on the requirements UI to better guide about the shortcode
   required.
 * **Improvements**
 * Performance improvements by limiting the number of requirements to check to only
   those who match with the event parameters.

#### 1.0.0

 * Initial release.

## 中繼資料

 *  版本 **1.0.9**
 *  最後更新 **7 個月前**
 *  啟用安裝數 **900+**
 *  WordPress 版本需求 ** 4.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  語言
 * [Dutch](https://nl.wordpress.org/plugins/gamipress-button/) 及 [English (US)](https://wordpress.org/plugins/gamipress-button/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/gamipress-button)
 * 標籤:
 * [button](https://tw.wordpress.org/plugins/tags/button/)[click](https://tw.wordpress.org/plugins/tags/click/)
   [gamification](https://tw.wordpress.org/plugins/tags/gamification/)[gamify](https://tw.wordpress.org/plugins/tags/gamify/)
   [gamipress](https://tw.wordpress.org/plugins/tags/gamipress/)
 *  [進階檢視](https://tw.wordpress.org/plugins/gamipress-button/advanced/)

## 評分

 3 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/gamipress-button/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/gamipress-button/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/gamipress-button/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/gamipress-button/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/gamipress-button/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/gamipress-button/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/gamipress-button/reviews/)

## 參與者

 *   [ Ruben Garcia ](https://profiles.wordpress.org/rubengc/)
 *   [ GamiPress ](https://profiles.wordpress.org/gamipress/)
 *   [ tsunoa ](https://profiles.wordpress.org/tsunoa/)
 *   [ Irene Berna ](https://profiles.wordpress.org/eneribs/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/gamipress-button/)