e.nigma buttons is a lightweight plugin that adresses a common problem that applies to many WordPress users: Visually highlight a link (e.g. a download link). One great solution is the use of buttons
The purpose of a button is clear. You press that button and something happens. This is a well known principle that most users are aware of. In contrast to regular text links (e.g. a download link), buttons are more likely to be noticed, especially if you use them in combination with an icon.
e.nigma buttons allows you to easily create those visually attractive buttons using a simple shortcode environment.
Development of the plugin is an open process. The current version is available on github:
Feel free to contribute and to fix errors or send improvements via github.
Shortcodes & Attributes
e.nigma buttons adds the shortcode
[button] to your installation. The following options can be used to adjust the button for your needs:
label: The label of your button
icon: The icon of your button
link: The link of your button
color: The color of button
border: yes (default) or no
size: small, medium (default) or large
class: Additional CSS classes that will be added to your buttons icon
Most of the shortcodes attributes are self explaining. However, it must be noted that the
icon attribute can be filled by using modififed Font Awesome shortcodes.
For instance: If you want to use the GitHub icon you would search for that icon in the list of all icons. What you will find is the corresponding CSS class. For e.nigma buttons the name of the icon (which is obtained if stripping the “fa-” in the beginning of the CSS class) is used. For GitHub the CSS class would be
github is your value for the
The following colors are avaible:
In addition to those values you can also use a hex color code (e.g. #ff3600)
[button label="My GitHub account" icon="github" color="orange" link="https://github.com/chemiker"]
Brings you an linked, medium-sized, orange button that has a GitHub icon and the label “My GitHub account”.
[button icon="github" color="orange" link="https://github.com/chemiker" size="large"]
Brings you an orange, large-sized, linked GitHub icon.
- Upload the plugin folder to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
Are there any reserved CSS classes for the ‘class’ attribute?
Yes. The original idea behind that class attribute was the ability to add additional Font Awesome CSS classes (for spinning, rotating etc.). Several examples can be found in the documentation of Font Awesome.
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“e.nigma buttons” is open source software. De volgende personen hebben bijgedragen aan deze plugin.Bijdragers
- Update of readme
- Update of readme
- Minor CSS modifications
- Upgraded to Font Awesome 4.7
- Added Support for localization
- Upgraded to Font Awesome 4.6.3
- Upgraded to Font Awesome 4.2
- Support Hexvalues (e.g. #ff3600) as color attribute
- Fix wrong line-height for various themes
- Initial release