Button Widget

Description

A simple customizable button widget for your sidebars to allow users take actions, and make choices, with a single tap.

Translators & Non-English Speakers

Translators are welcome to contribute to the plugin. Please use the WordPress translation website.

Get Involved

Want to contribute? Here’s the GitHub development repository.

Free Support

All support is handled via a dedicated support forum, available at Community Forums. Please head out there to open a new topic, in case you have any questions.

Support this plugin

Don’t forget to rate this plugin 5 shining stars if you like it, thanks!

Screenshots

  • Widget settings interface
  • Button widget visible on TwentyTwenty theme’s footer.

Installation

Minimum Requirements

  • PHP version 7.2 or greater.
  • MySQL version 5.6 or greater or MariaDB version 10.0 or greater.
  • WordPress version 5.0 or greater.

Automatic installation

Automatic installation is the easiest option — WordPress will handle the file transfer, and you won’t need to leave your web browser. To do an automatic install of the plugin, log in to your WordPress dashboard, navigate to the Plugins menu, and click “Add New.”

In the search field type “Button Widget”, then click “Search Plugins.” Once you’ve found the plugin, you can view details about it such as the point release, rating, and description. Click “Install Now,” and WordPress will take it from there.

Manual installation

The manual installation method requires downloading the plugin and uploading it to your webserver via your favorite FTP application. The WordPress codex contains instructions on how to do this here.

Updating

Automatic updates should work smoothly, but we still recommend you back up your site.

FAQ

How do I use the plugin?
  1. Log into your WordPress website and navigate to Appearance » Widgets.
  2. Locate the Button widget and drag it to the sidebar area where you wish it to appear.
  3. Click the down arrow in the upper right corner to expand the widget’s interface.
  4. Then click the Save button to save the widget’s customization.
  5. Preview the site. You should now see the added button widget is visible.
How do I customize the button’s appearance?

Although the button text and background color can be edited, the widget adapts your theme’s default button style with adding the button class name to the output markup. You may modify it using the following filter:

function prefix_custom_button_widget_classname( $classname ) {
    $classname = 'custom-class-name';
    return (string) $classname;
} 
add_filter( 'button_widget_classname', 'prefix_button_widget_classname', 10, 1 );
I need help customizing this plugin?

I am a full-stack developer with over five years of experience in WordPress theme and plugin development and customization. I would love to have the opportunity to discuss your project with you.
Hire me at UpWork →

Contributors & Developers

“Button Widget” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Button Widget” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.0

  • Ability to leave color picker control values empty.

1.0.0

  • Initial release.