Buttons (UB) Block

The Buttons (UB) block in Ultimate Blocks lets you add one or more styled, linked buttons to any WordPress post or page. You can set each button’s width, colors for normal and hover states, icon, corner radius, typography and link options such as nofollow and sponsored. The block is free, and Ultimate Blocks Pro adds Fade and Wipe hover transition animations.

Block name in the editorButtons (UB)
PlanFree (transition animations need Pro)
Best forCalls to action, download links, affiliate links, pricing and landing pages
Live demoSee the Buttons (UB) block in action

What you can use it for #

  • Add a clear call to action, such as Buy Now, Sign Up or Download.
  • Place two buttons side by side, for example a main action and a secondary action.
  • Add affiliate or sponsored links with the correct nofollow and sponsored attributes.
  • Add an icon to a button, such as a download arrow or a cart.
  • Make a full width button for mobile friendly landing pages.

How to add the Buttons (UB) block #

  1. Open the post or page in the WordPress block editor.
  2. Click the + (Block Inserter) button.
  3. Search for Buttons (UB) and click the block to add it.
  4. Click the button and type your button text.
Add the Button (Improved) Block

Tip: Already using the core WordPress Buttons block? Select it and use Transform in the block toolbar to turn it into Buttons (UB). The text, link and colors carry over.

Add a link and more buttons #

  • Add button link: select a button and click the link icon in the block toolbar. Paste the URL and click Apply.
  • Open Link in New Tab: open the link in a new browser tab.
  • Add Nofollow to Link: tell search engines not to follow the link. Use it for paid or untrusted links.
  • Mark link as sponsored: add rel="sponsored" for affiliate and paid links, as Google recommends.
  • Add a button: click the + next to the last button to add another button to the same block.
  • Delete This Button: hover over a button and click the small x icon to remove it (shown when the block has more than one button).

Each button has its own settings. Click a button first, then change its width, icon, colors and typography in the sidebar.

Write Button Copy and Set Its Size

Settings tab #

Select the block and open the block sidebar on the right. The Settings tab (gear icon) has these panels:

Layout #

  • Justification: choose Left, Center, Right or Space between (spreads the buttons across the full width). You can also set this from the block toolbar.
  • Orientation: show the buttons in a row (horizontal) or stacked (vertical).
  • Allow to wrap to multiple lines: let buttons move to a new line when there is not enough space.

Width & Size #

  • Button Width: choose Fixed, Flexible or Full.
  • Fixed: the button keeps the width you set in the Width field, no matter how long the text is.
  • Flexible: the button grows or shrinks to fit its text. This is the default and works for most buttons.
  • Full: the button fills the full width of its container.
Set Width for the Button

To change how big the button looks, use the font Size in the Typography panel and Button Padding in Dimension Settings (Styles tab). These replace the old S, M, L and XL size buttons.

Icon #

  • Icon: pick an icon from the icon library, or remove it.
  • Icon position: show the icon on the Left or Right of the text.
  • Change icon size: turn this on to set a custom Icon size in px or em.
Use Icon

Styles tab #

Switch to the Styles tab (half-circle icon) to change the look of the selected button:

Button Styling #

  • Transparent: remove the background color and show only a colored border and text. This is a good choice for a secondary, outline style button.
  • Transition animation (Pro): choose a hover effect, see Pro features below.
Enable the Transparent Color

Color #

Colors have two tabs: Normal and Hover. In each tab you can set the Button Color (background) and Button Text Color. Hover colors show when a visitor moves the mouse over the button.

Colorize the Button

Typography #

Set the Font, Size, Appearance (weight and style), Line Height, Letter Spacing, Decoration and Letter case of the button text.

Border #

  • Button Radius: round the corners. Set one value for all corners or a different value for each corner. A high value gives a pill shaped button.
  • Shadow: add a drop shadow to the button.
Set Button Border

Dimension Settings #

  • Padding and Margin: space inside and around the whole block.
  • Button Padding: space inside each button, around the text.
  • Block Spacing: the gap between buttons.

Pro features #

  • Transition animation: add a hover effect to the button. Choose Fade for a smooth color change, or Wipe for a color that slides across the button. With Wipe you can also pick the Wipe direction.

Get Ultimate Blocks Pro to unlock this feature.

Extensions you can use with this block #

Frequently asked questions #

How do I add two buttons side by side in WordPress?

How do I make a button open in a new tab?

How do I add nofollow or sponsored to a button link?

How do I make a full width button?

How do I make an outline button?

Is the Buttons (UB) block free?

Related docs #

Updated on November 7, 2026

What are your feelings

  • Happy
  • Normal
  • Sad