---
title: Buttons (UB) Block
description: How to use the Buttons (UB) block in Ultimate Blocks to add styled WordPress buttons with icons, hover colors, nofollow and sponsored links, and Pro hover animations.
url: "https://ultimateblocks.com/docs/button-improved-block/"
updated: "2026-11-07"
category: "Engagement & Conversion Blocks"
---

# 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 editor** | Buttons (UB) |
| --- | --- |
| **Plan** | Free (transition animations need Pro) |
| **Best for** | Calls to action, download links, affiliate links, pricing and landing pages |
| **Live demo** | [See the Buttons (UB) block in action](https://ultimateblocks.com/improved-button-block/) |

## 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](https://ultimateblocks.com/wp-content/uploads/2023/05/Add-the-Button-Improved-Block.png)

**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](https://ultimateblocks.com/wp-content/uploads/2023/05/Write-Button-Copy-and-Set-Its-Size.png)

## 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](https://ultimateblocks.com/wp-content/uploads/2023/05/Set-Width-for-the-Button.png)

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](https://ultimateblocks.com/wp-content/uploads/2023/05/Use-Icon.png)

## 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](https://ultimateblocks.com/wp-content/uploads/2023/05/Enable-the-Transparent-Color.png)

### 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](https://ultimateblocks.com/wp-content/uploads/2023/05/Colorize-the-Button.png)

### 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](https://ultimateblocks.com/wp-content/uploads/2023/05/Set-Button-Border.png)

### 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](https://ultimateblocks.com/pricing/) to unlock this feature.

## Extensions you can use with this block

- [Visibility Control](https://ultimateblocks.com/docs/visibility-control/) (Pro): show the block only to certain users or on a schedule.
- [Animation](https://ultimateblocks.com/docs/animation/) (Pro): animate the block when it comes into view.
- [Responsive Control](https://ultimateblocks.com/docs/responsive-control/): hide the block on desktop, tablet or mobile.
- [Custom CSS](https://ultimateblocks.com/docs/custom-css/): add your own CSS to this block only.
- [Saved Styles](https://ultimateblocks.com/docs/how-to-save-a-style/) (Pro): save your design and reuse it on other posts.

## Frequently asked questions

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

Add the Buttons (UB) block and click the plus icon next to the first button to add a second one. Set Orientation to horizontal in the Layout panel to keep them in one row.

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

Select the button, click the link icon in the block toolbar, and tick Open Link in New Tab.

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

In the same link popup, tick Add Nofollow to Link, Mark link as sponsored, or both. Use sponsored for affiliate and paid links.

**How do I make a full width button?**

Select the button and set Button Width to Full in the Width and Size panel.

**How do I make an outline button?**

Turn on Transparent in the Button Styling panel of the Styles tab. The button keeps a colored border and text with no background.

**Is the Buttons (UB) block free?**

Yes. It is included in the free Ultimate Blocks plugin. The Fade and Wipe transition animations are part of Ultimate Blocks Pro.

## Related docs

- [Call to Action block](https://ultimateblocks.com/docs/call-to-action-block/)
- [Coupon block (Pro)](https://ultimateblocks.com/docs/coupon-block/)
- [Countdown Timer block](https://ultimateblocks.com/docs/countdown-block/)
- [Icon block](https://ultimateblocks.com/docs/icon-block/)
- [How to save a style](https://ultimateblocks.com/docs/how-to-save-a-style/)
