Button let’s you add activity events filtered by button clicks adding new activity events on 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 add-on.

New Events

  • Click any button When an user clicks on any button.
  • Click a button with a specific ID When an user clicks on any button with a specific identifier (button id attribute).
  • Click a button with a specific Class When an 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

FAQ

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.
  • onclick: The button onclick attribute. If you don’t know exactly what is the purpose of this attribute leave it blank.

Example:
[gamipress_button type="submit" label="Click here!" id="my-button" class="awesome-buttons one-class other-class"]

How can I redirect an user to another page on click the button?

[gamipress_button] shortcode has the attribute “onclick”. On the onclick attribute you can use any Javascript code you want.

By setting the “onclick” attribute to “location.href='{INSERT_URL_HERE}’;” you can perform a redirect to any URL you want.

Example to redirect to gamipress.com:
[gamipress_button label="GamiPress website" onclick="location.href='https://gamipress.com/';"]

Example to redirect to gamipress.com/add-ons:
[gamipress_button label="GamiPress add-ons" onclick="location.href='https://gamipress.com/add-ons/';"]

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 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.

Get Button Now

You may also like...
Leaderboards
Add leaderboards to intensify the gamification of your site
$49.00
Block Users
Block users and roles from getting awarded through the GamiPress awards engine
Free
Multimedia Content
Add activity triggers based on multimedia content creation and interaction
Free
WPEP integration
Connect GamiPress with WPEP
Free