This guide walks you through how to create button WordPress using built-in tools, page builders, and custom code. Whether you’re a beginner or advanced user, you’ll find clear, actionable steps to add stylish, functional buttons to your site.
Key Takeaways
- Use the Gutenberg Block Editor: WordPress’s native editor makes adding buttons simple with its dedicated Button block.
- Leverage Page Builders like Elementor: Drag-and-drop tools offer advanced styling and animation options for professional-looking buttons.
- Customize with CSS: Add unique colors, hover effects, and shapes using custom CSS for full design control.
- Ensure Mobile Responsiveness: Always test buttons on mobile devices to guarantee usability across all screens.
- Optimize for Conversions: Use clear call-to-action text and strategic placement to increase click-through rates.
- Troubleshoot Common Issues: Fix alignment, link, or styling problems with simple debugging tips.
How to Create Button WordPress: A Complete Step-by-Step Guide
Adding buttons to your WordPress site is one of the easiest ways to improve user experience and drive engagement. Whether you’re linking to a contact form, promoting a product, or encouraging newsletter signups, well-designed buttons guide visitors toward action. In this guide, you’ll learn how to create button WordPress using multiple methods—from the built-in editor to powerful page builders and custom code. By the end, you’ll be able to add stylish, responsive, and functional buttons to any page or post.
Method 1: Using the WordPress Block Editor (Gutenberg)
The WordPress Block Editor, also known as Gutenberg, includes a built-in Button block that makes adding buttons quick and easy. This method requires no plugins or coding knowledge.
Step 1: Open the Page or Post Editor
Go to your WordPress dashboard, then navigate to Pages > Add New or Posts > Add New. If you’re editing an existing page, click Edit under the title.
Step 2: Add a Button Block
- Click the + icon to add a new block.
- Type “button” in the search bar and select the Button block.
- The button will appear with default text like “Click here.”
Step 3: Customize the Button
In the block settings on the right sidebar, you can:
- Change the text: Click on the button and type your desired label (e.g., “Get Started,” “Download Now”).
- Add a link: Paste the URL you want the button to open. You can link to internal pages, external sites, or even email addresses (use
mailto:you@example.com). - Adjust alignment: Choose left, center, or right alignment.
- Style the button: Use the Style dropdown to pick a preset (like “Outline” or “Fill”) or customize colors under Color settings.
Step 4: Preview and Publish
Click Preview to see how the button looks on desktop and mobile. When satisfied, hit Publish or Update.
Tip: Use descriptive text like “Book a Free Consultation” instead of “Click Here” to improve accessibility and SEO.
Method 2: Creating Buttons with Elementor
If you’re using a page builder like Elementor, you have even more design flexibility. Elementor is a popular drag-and-drop tool that lets you create stunning buttons with animations, icons, and responsive controls.

Visual guide about How to Create Button WordPress
Image source: greengeeks.com
Step 1: Install and Activate Elementor
If you haven’t already, go to Plugins > Add New, search for “Elementor,” install it, and activate it. For advanced features, consider upgrading to Elementor Pro.
Step 2: Edit the Page with Elementor
Open the page or post you want to edit, then click Edit with Elementor.
Step 3: Add a Button Widget
- In the Elementor panel on the left, search for “Button” and drag it onto your page.
- Double-click the button to edit the text.
Step 4: Customize Appearance and Behavior
In the Style tab, you can:
- Change background and text colors.
- Add hover effects (e.g., color change, shadow).
- Adjust padding, border radius, and font size.
- Add an icon from Font Awesome or upload a custom one.
In the Advanced tab, use Motion Effects to add entrance animations like fade-in or slide-up.
Step 5: Set the Link and Publish
In the Link field, enter the destination URL. You can also choose to open the link in a new tab. Once done, click Update to save your changes.
Pro Tip: Use Elementor’s responsive mode to preview how your button looks on tablets and phones. Adjust font size and padding for smaller screens if needed.
Want to go further? Learn how to create WordPress theme with Elementor to build fully custom designs from scratch.
Method 3: Adding Buttons with Custom HTML and CSS
For developers or users who want full control, you can create buttons using HTML and CSS. This method is ideal for adding unique styles not available in the default editor.
Step 1: Add HTML in a Custom HTML Block
- In the Gutenberg editor, add a Custom HTML block.
- Insert the following code:
<a href="https://example.com" class="custom-button">Get Started</a>Step 2: Add Custom CSS
To style the button, go to Appearance > Customize > Additional CSS and add:
.custom-button {
display: inline-block;
padding: 12px 24px;
background-color: #0073aa;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s ease;
}
.custom-button:hover {
background-color: #005177;
}
This creates a blue button that darkens on hover. You can change colors, fonts, and effects to match your brand.
Step 3: Save and Test
Click Publish in the Customizer, then view your page to see the styled button in action.
Note: Always test custom CSS on a staging site first to avoid breaking your live design.
For more advanced styling, check out our guide on the best way to add CSS in WordPress website for best practices and tools.
Tips for High-Converting Buttons
Great buttons don’t just look good—they convert. Here’s how to make yours more effective:
- Use action-oriented text: “Download the Guide,” “Start Your Free Trial,” or “Join Now” work better than passive phrases.
- Contrast colors: Ensure your button stands out from the background. Use tools like WebAIM’s Contrast Checker.
- Place strategically: Put buttons above the fold, after compelling content, or in sticky headers.
- Limit button count: Too many options can confuse users. Stick to one primary action per section.
- Test different versions: Use A/B testing plugins to compare button colors, text, or placement.
Troubleshooting Common Button Issues
Even simple buttons can run into problems. Here’s how to fix the most common ones:
Button Not Clickable?
Check if the link field is empty or contains a broken URL. Also, ensure no overlapping elements (like transparent divs) are blocking it.
Button Looks Different on Mobile?
Use responsive settings in Elementor or add media queries in your CSS:
@media (max-width: 768px) {
.custom-button {
font-size: 14px;
padding: 10px 18px;
}
}
Hover Effect Not Working?
Make sure your CSS includes the :hover state and that no other styles are overriding it. Clear your cache if using a caching plugin.
Button Misaligned?
In Gutenberg, use the alignment toolbar. In Elementor, adjust the widget’s alignment in the Advanced tab under Position.
Conclusion
Learning how to create button WordPress opens up endless possibilities for improving your site’s design and functionality. Whether you use the built-in Button block, a powerful page builder like Elementor, or custom code, you now have the tools to add professional, click-worthy buttons to any page.
Remember: great buttons are clear, visible, and action-driven. Test different styles, monitor performance, and keep refining. With these methods, you’re well on your way to creating a more engaging and conversion-friendly WordPress site.