Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Setup & site building · Guide

How to Create a Button in WordPress (Block Editor, Page Builders and Menus)

How to Create a Button in WordPress (Block Editor, Page Builders and Menus)

Short answer

To create a button in WordPress, open a post or page in the block editor, click the plus icon or type /buttons, and insert the Buttons block. Type the button text, click the link icon to add a URL, then style it in the sidebar with colors, border radius and width. Add more buttons inside the same block to place them side by side.

Key takeaways

  • The Buttons block is built into WordPress; no plugin is needed.
  • Each button needs short text and a link to work.
  • Colors, outline style, width and corner radius are set in the sidebar.
  • Several buttons sit together inside one Buttons block.
  • Clear text and strong contrast make buttons easier to use.

How do you add a button in the block editor?

Open the page, click the plus icon or type /buttons on a new line, choose the Buttons block, type the button text, then select the link icon and paste or search for the destination.

The Buttons block is part of WordPress core, so every modern site has it.

Many themes also include patterns with ready-made buttons, such as hero sections and calls to action. Inserting one of those can be faster than building from scratch.

The WordPress documentation for the Buttons block shows each setting in detail.

After adding the link, update or publish the page and test the button on the front end.

Can you add a button inside a paragraph?

No. Buttons are separate blocks, so place the Buttons block between paragraphs; for an inline call to action, use a normal text link instead.

Inline links suit secondary actions in running text. Buttons suit the main action of a section.

Select the button, click the link icon in its toolbar, then paste a URL or type to search your own pages and posts, and press Enter to save the link.

Linking to your own content by search avoids typos in URLs.

You can also link a button to an email address with mailto, a phone number with tel, or a section of the same page with an anchor.

The link settings let you open the link in a new tab. Use this sparingly, mainly for external sites.

For paid or sponsored links, mark them as nofollow or sponsored. Google's guide to qualifying outbound links explains when to use each value.

How do you style a button?

Select the button and use the sidebar to choose Fill or Outline style, text and background colors, typography, padding, border radius and width.

Use colors from your theme palette so buttons match the rest of the site.

Hover colors depend on the theme. Block themes let you set hover styles globally, while classic themes may need a small CSS rule.

Width options set the button to a percentage of its container. Full width works well on mobile and in narrow columns.

Border radius controls how rounded the corners are. Matching the roundness of other elements, such as cards and images, keeps the design consistent.

Block themes let you set default button styles for the whole site under Appearance > Editor > Styles > Blocks > Button.

How do you make all buttons look the same?

Set global button styles in the Site Editor, or save a styled button as a pattern, so every new button uses the same colors, font and shape.

Consistent buttons help visitors recognise actions instantly.

Some themes include extra button style variations, such as rounded or squared, which you can pick from the Styles panel.

Our guide on block patterns shows how to save and reuse a styled section.

How do you add several buttons side by side?

Inside a Buttons block, select an existing button and click the plus icon that appears, or press Enter at the end of the button text, to add another button in the same row.

Use the Buttons block's justification and orientation settings to align them left, centre, right or stack them vertically.

Make the main action stand out. Use a filled style for the primary button and an outline style for the secondary one.

Keep button labels similar in length within one row. Very different lengths make the row look uneven.

On small screens, the buttons wrap onto new lines automatically.

How do you center or align a button?

Select the parent Buttons block, not the single button, and use the justification control in the toolbar to align buttons left, centre, right or spaced across the row.

Use the Select parent button in the toolbar if you have the inner button selected.

List View makes it easy to pick the Buttons container in complex layouts.

To center a button inside a column, align the Buttons block within that column, not the whole column itself.

Our explainer on the WordPress block editor shows where the toolbar and List View sit.

How do you add a button with a page builder?

Drag the builder's button widget onto the page, set its text and link, and style it in the widget panel; builders offer extra options such as icons, hover effects and animations.

Our guide on using Elementor covers its button widget along with other basics.

Keep builder buttons consistent with any block editor buttons elsewhere on the site.

Builders often add icons to buttons. An arrow icon can help, but avoid icons that make the label harder to read.

Avoid heavy animations on buttons. They distract and can slow down older phones.

How do you add a button to the navigation menu?

Add a normal menu link, then style it as a button with a theme option, a custom CSS class or a block theme's navigation settings, so it stands out in the header.

A highlighted menu button suits one key action, such as Contact or Book now.

Too many highlighted menu items cancel each other out. Pick the single most important action for the header.

In classic menus, enable CSS Classes in Screen Options under Appearance > Menus, add a class to the item, then style that class with CSS.

Check how the button looks in the mobile menu as well.

How do you add a button in the classic editor?

The classic editor has no button tool, so use a plugin that adds button shortcodes, your theme's button shortcode, or HTML with a class your theme styles as a button.

Switching that page to the block editor is usually simpler if your site allows it.

Keep HTML buttons as links styled to look like buttons when they lead to another page.

MDN's reference for the button element explains when a real button element is the right choice instead of a link.

How do you make buttons accessible?

Use clear text that says what happens, keep enough contrast between text and background, make buttons large enough to tap, and avoid relying on color alone.

The W3C explains minimum contrast requirements for text, including button labels.

Text such as Download the price list is clearer than Click here, especially for screen reader users.

Make tap targets comfortable on phones. Larger padding helps people press the right button with a thumb.

Test buttons with a keyboard. Pressing Tab should move focus to each button with a visible outline.

What makes a good button?

A good button has one clear action, short specific text, a visible style that looks clickable, and a place where readers are ready to act, such as after key information.

Use verbs: Get a quote, Start free trial, Read the guide.

Add a short line of supporting text near important buttons, such as No card required, to reduce hesitation.

Limit each section to one main button. Too many choices slow decisions.

Test different wording on important pages and keep the version that gets more clicks.

Place the main button above the fold on landing pages, and repeat it near the end for readers who scroll through the whole page.

Why is my button not working?

Usually the link is missing or wrong, the button is covered by another element, or caching or a script error stops the page from updating.

Select the button in the editor and check its link. An empty link makes a button that does nothing.

If part of the button cannot be clicked, another element may overlap it. Our explainer on z-index in WordPress shows how to spot layering problems.

Clear caches after changes and test in a private window.

Check browser console errors as well. A broken script from another plugin can block clicks on buttons that use pop-ups or forms.

Frequently asked questions

How do I add a button in WordPress?

Open the page in the block editor, type /buttons or use the plus icon, insert the Buttons block, type the text, then click the link icon and add the URL.

Do I need a plugin to create buttons in WordPress?

No. The Buttons block is built into WordPress core. Plugins and page builders only add extra styles, icons or effects on top of what the block already does.

How do I change a button's color in WordPress?

Select the button and open the Styles settings in the sidebar, then choose text and background colors, ideally from your theme's color palette.

How do I center a button in WordPress?

Select the parent Buttons block, not the single button, and use the justification control in its toolbar to center it.

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

Select the button, open its link settings and turn on the option to open in a new tab. Use this mainly for links to other websites.

Sources

  1. Buttons block WordPress.org Documentation
  2. Qualify your outbound links to Google Google Search Central
  3. The Button element MDN Web Docs
  4. Understanding Contrast (Minimum) W3C WAI

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.