
A button with an old or wrong link sends your visitors to the wrong place, or to a 404 page. The good news: fixing it takes less than a minute.
This guide shows you how to change a button link in WordPress with no code: in the core Button block, in the free Ultimate Blocks plugin, and in places like your header or a synced pattern.
Quick answer
To change a button link in WordPress, open the post or page in the block editor and click the button. Then:
- Click the Link icon in the block toolbar (or the Edit link pencil in the link preview).
- Replace the old URL with the new one and click Save or press Enter.
- Click Save (or Update) at the top of the editor.
You do not need a plugin. The free Buttons (UB) block from Ultimate Blocks works the same way and adds a sponsored option for affiliate links.
Which method should you use?
The right method depends on where your button lives. Find your case in the table, then jump to that section.
| Where is the button? | How to change its link |
|---|---|
| In a post or page (core Button block) | Method 1: edit the link in the block toolbar |
| In a Buttons (UB) block from Ultimate Blocks | Method 2: edit the link in the block toolbar, with nofollow and sponsored options |
| In your header, footer or a template | Edit it in the Site Editor (Appearance > Editor) |
| On many pages at once | Edit the synced pattern that holds it |
Method 1: Change a button link in the core Button block
Best for: buttons you added with the Buttons block that comes with WordPress.
In WordPress, a Buttons block is a container that holds one or more single Button blocks. Each single button has its own link.
Step 1: Open the post or page
- In your dashboard, go to Posts > All Posts or Pages > All Pages.
- Hover over the post or page and click Edit.
Step 2: Select the button
Click directly on the button text. A small link preview shows the current URL, and the block toolbar appears above the button.
Step 3: Edit the link
- Click the Edit link (pencil) icon in the link preview, or the Link icon in the toolbar.
- Delete the old URL and paste the new one. You can also type a few words to search your own posts and pages.
- Click Save or press Enter.
To remove a link completely, click the Remove link (unlink) icon in the link preview.
Step 4: Set new tab or nofollow (optional)
While you edit the link, open Advanced in the link popup to find two toggles:
- Open in new tab: good for links to other websites, so visitors keep your page open.
- Mark as nofollow: tells search engines not to follow the link. Use it for paid or untrusted links.
Need a custom rel value such as sponsored? Open the Advanced panel at the bottom of the block sidebar and type it in the Link rel field.
Step 5: Save and test
Click Save (or Update) at the top right. Then open the live page and click the button to make sure it goes to the right place.
Method 2: Change a button link with Ultimate Blocks
Best for: affiliate, download and call to action buttons where you want nofollow and sponsored links in one click, plus hover colors and icons.
Ultimate Blocks is a free block plugin active on 50,000+ WordPress sites, rated 4.9 out of 5 from 700+ reviews on WordPress.org. Its Buttons (UB) block gives every button its own link and link options.
Live example: three link options
These are real Buttons (UB) buttons. The first opens in the same tab, the second opens in a new tab, and the third opens in a new tab with a nofollow link.
Step 1: Install Ultimate Blocks
- Go to Plugins > Add New Plugin.
- Search for Ultimate Blocks, then click Install Now and Activate.
Already have a core button? Select it, click Transform in the toolbar and choose Buttons (UB). The text, link and colors carry over.
Step 2: Select the button and open the link popup
- Click the button you want to change. Each button in the block has its own link.
- Click the link icon in the block toolbar.
- Paste the new URL and click Apply.
Step 3: Pick the link options
In the same link popup, tick any of these:
- Open Link in New Tab: opens the link in a new browser tab.
- Add Nofollow to Link: tells search engines not to follow the link.
- Mark link as sponsored: adds
rel="sponsored", which Google recommends for affiliate and paid links.
Then click Save (or Update) at the top of the editor. The Buttons (UB) documentation lists every setting.
Updating the same button style on many pages? Ultimate Blocks Pro adds Saved Styles, so you design a button once and reuse it anywhere, plus Fade and Wipe hover animations that draw more attention to your links. Plans start at $39/year for one site, with a 30-day money-back guarantee.
How do I change a button link in the header or footer?
Header and footer buttons are not part of a single post, so you change them where your theme builds the header.
On a block theme
- Go to Appearance > Editor.
- Open the page or template that shows the button, then click the button in the header or footer.
- Edit the link the same way as in Method 1, then click Save.
The header is a template part, so your change shows on every page that uses it.
On a classic theme or page builder
Look for the header button in Appearance > Customize or in your theme’s own options panel. If a page builder made the button, open the page in that builder, click the button and change the link field in its settings.
How do I change the same button link on many pages?
Put the button in a synced pattern. A synced pattern is one block design you reuse across your site, and editing it once updates every copy.
- Select the button (or the group around it), click the three dots menu in the toolbar and choose Create pattern.
- Give it a name and keep Synced turned on.
- Insert that pattern wherever you need the button.
To change the link later, click Edit original on any copy, or go to Appearance > Editor > Patterns, update the link and save. Every page with the pattern gets the new link.
How do I link a button to a section on the same page?
- Click the heading you want to jump to and open Advanced in the block sidebar.
- Type a short name in HTML anchor, for example
pricing. - Set the button link to
#pricingand save.
Our guide to anchor links in WordPress covers jump links in more detail.
Why is my new button link not working?
- You did not save the post. Changing the link is not enough. Click Save or Update at the top of the editor.
- The old page is cached. Clear your caching plugin or host cache, then reload the page.
- The URL is incomplete. For other websites, include the full address starting with
https://. - You edited the wrong copy. If the button is in a template or synced pattern, change the original, not the page.
Related guides:
- How to edit buttons in WordPress
- How to change button color in WordPress
- How to change the button size in WordPress
- How to center a button in WordPress
- How to add buttons in WordPress
- Best WordPress button plugins
Supercharge Your WordPress Block Editor!

Black Friday deal coming: from November 20 to December 2, 2026, use code BF2026 for 50% off Ultimate Blocks Pro, or get 40% off the full WP Block Suite bundle.
Frequently asked questions
How do I change the link of a button in WordPress?
Open the post in the block editor, click the button, then click the Link icon in the toolbar or the pencil in the link preview. Paste the new URL, press Enter and save the post.
Do I need a plugin to change a button link?
No. The core Button block lets you change the link, open it in a new tab and mark it as nofollow. A plugin such as the free Ultimate Blocks adds a one-click sponsored option, hover colors and icons.
How do I make a button link open in a new tab?
In the core Button block, edit the link, open Advanced in the link popup and turn on Open in new tab. In the Buttons (UB) block, tick Open Link in New Tab in the link popup.
How do I add a sponsored or nofollow attribute to a button link?
The core Button block has a Mark as nofollow toggle and a Link rel field in its Advanced panel where you can type sponsored. The Buttons (UB) block has separate Add Nofollow to Link and Mark link as sponsored checkboxes.
How do I change a button link on every page at once?
If the button sits in your header, footer or a synced pattern, edit it once in Appearance, Editor and every page updates. Buttons added to each page separately must be edited one by one.
Final thoughts
To change a button link in WordPress, click the button, edit the link in the toolbar and save the post. For one-click nofollow and sponsored links, plus hover colors and icons, use the free Ultimate Blocks Buttons (UB) block.
Your next step: check the main button on your most important page today, then make it stand out with our guide on changing button color.
Found this helpful? See more of us on Google.
Add UltimateBlocks.com as a preferred source and our WordPress guides will show up more often in your Top Stories, AI Overviews and AI Mode.
Free, one tap, remove anytime


























Leave a Reply