Button Widget

The SiteOrigin Button Widget, powerful yet simple.

Requirements

To make use of this widget, go to PluginsSiteOrigin Widgets to activate the SiteOrigin Button Widget.

The Button Widget is ready to be used anywhere:

Page Builder: Insert widgets in Page Builder by SiteOrigin in either the Classic Editor or Page Builder Layout Block in the Block Editor.
Block Editor: 100% Block Editor compatible. Insert widgets using the SiteOrigin Widgets Block featuring a live widget search form.
Theme and Plugin Widget Areas: Insert widgets into any theme or plugin widget area.

Settings

Button text:
Enter the text that’ll be displayed in the button.

Destination URL:
Enter the button link. Use the Select Content button on the right to select a page or post in your WordPress installation.

Open in a new window:
Enable to open the button link in a new window.

Download:
The Destination URL will be downloaded when a user clicks on the button.

Next, you’ll see three sections, each contains a list of settings:

  • Icon
  • Design and Layout
  • Other attributes and SEO

Icon

Icon
Visually select an icon from several different icon libraries.

Icon color
Set the selected icon’s color.

Image Icon
Replaces the icon with your own image icon. Use the Choose Media button to choose an image from your WordPress media library or click the Image Search button to search for royalty-free images on Pixabay.

Icon placement
Choose between Top, Right, Left, or Bottom.

Design and Layout

Width
Leave blank to let the button resize according to content. Alternatively, insert a width value. Use the drop-down field next to the width field to select a unit of measurement. The default unit is pixels (px).

Align
Align the entire button on the page. Defaults to Center. Choose between Left, Right, Center, or Justify.

Mobile align
Set the button alignment on mobile devices. Defaults to Center.

Button theme
Select a button theme. Choose between Atom, Flat or Wire. Atom has a rounded effect which Flat removes. Wire removes the background color and only uses a border.

Button color
Select the button background color.

Text color
Select the button text color.

Use hover effects
For the Atom and Flat themes, hover effects will lighten the background slightly, for the Wire theme, the background will be added on hover.

Hover background color
Select the button hover background color.

Hover text color
Select the button hover text color.

Font
Select the button font family.

Font size
Set the button font size. Choose between Normal, Medium, Large, or Extra Large.

Rounding
Set the button corner rounding. Defaults to Slightly rounded. Choose between None, Slightly rounded, Very rounded, or Completely rounded.

Padding
Padding is the distance between the text and the edge of the button. Defaults to Medium. Choose between Low, Medium, High, or Very High.

Other attributes and SEO

This section contains optional fields that some users will find useful.

Button ID
An ID attribute allows you to target this button in JavaScript.

Button classes
Additional CSS classes added to the button link.

Title attribute
Adds a title attribute to the button link.

Onclick
Run this JavaScript when the button is clicked. Ideal for tracking.

Rel attribute
Adds a rel attribute to the button link.