Add a button to a WP page

CMSHands, a free WordPress plugin, adds a chat to your dashboard. Type “Add a ‘Book a class’ button to Workshops.” See it first, press OK, undo in one click.

Pages made in the WP editor, not a page builder. Tested on a block theme. What's a page builder?

Pages made in the WP editor, not a page builder. Tested on a block theme. What's a page builder?

CMSHandsmysite.com

Works on sites hosted at

Watch it do this on a real site

You ask

1 of 6

Add a “Book a class” button at the end of the Workshops page that links to the Contact page.

Add a “Book a class” button at the end of the Workshops page that links to the Contact page.

  1. Looking for what you meant
  2. Looking for what you meant
  3. Reading from your site
  4. Reading one of your pages
  5. Looking at your theme’s colours and sizes
  6. Preparing the change for your OK
  7. Previewing your page
Update one of your pagesat its own address
Waiting for you
Your pageat its own address
The waiting card with After pressed: the Workshops page as it would look, a Book a class button under the last line
The waiting card with After pressed: the Workshops page as it would look, a Book a class button under the last line
  1. <!-- wp:paragraph -->
  2. <p>No experience needed. Wear clothes you don't mind getting muddy.</p>
  3. <!-- /wp:paragraph -->
  4. <!-- wp:buttons -->
  5. <div class="wp-block-buttons"><!-- wp:button -->
  6. <div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="/contact/">Book a class</a></div>
  7. <!-- /wp:button --></div>
  8. <!-- /wp:buttons -->
Update the pageNot nowCan be undone

Ready for you to review — it's the Workshops page (id 38), and the button points to /contact/ (the Contact page).

The same card with Code pressed: 26 lines unchanged, then five new lines in green that make one button linked to /contact/
  1. Updating one of your pages
  2. Checking the change
Update one of your pagesApproved
Approved

Done. I checked afterwards, and it now says "Book a class".

UndoCan be undone
The foot of the Workshops page on the test site right after: a dark rounded Book a class button under the last line
  1. Reverting the change
  2. Checking the change

Undone. I checked afterwards, and it's back the way it was.

A real run on our test site, Quillmoor Pottery (WP 7.1.3, Twenty Twenty-Four), . From asking to done, it took 44 seconds.

  • It adds a button to a page made in the WP editor when you ask, in your theme's own button style, and shows you the page with it before anything changes.
  • Press Code to see the one button it adds; the rest of the page stays as it is.
  • Undo takes the button off again and shows what it removed.

Do this on your own site

That's the whole job. The plugin is free: 3 changes to try it, no account. Nothing changes until you press the button, and an undo within 24 hours gives the change back.

Download the free plugin

Get the plugin here instead

How to add a button in WordPress yourself

In WordPress, open the page in the editor, add a Buttons block where the button goes, type its words, link it to a page, then press Save.

Checked on WP 7.1,

  1. 1. Log in to your dashboard and go to Pages › All Pages. Hover over the page and click Edit. On our test site, that's Workshops.

    The WP dashboard menu with All Pages open, and the Edit link under the Workshops page outlined
  2. 2. Click at the end of the paragraph the button should follow and press Enter. An empty line appears: “Type / to choose a block”.

    The Workshops page in the editor: under its last paragraph, an outlined empty line that says Type / to choose a block
  3. 3. Press the blue + at the top left, type “buttons” in the search box and click Buttons. Typing /buttons on the empty line works too.

    Show the picture
    The block panel open on the left, buttons typed in its search box, and the Buttons block outlined
  4. 4. A button appears with “Add text…” in it. Type the words visitors should see, like “Book a class”.

    Show the picture
    The new button under the last paragraph, outlined, with Book a class typed in it
  5. 5. Press the link icon in the small toolbar above the button. Type the page's name, like Contact, and pick it from the list.

    Show the picture
    The link icon in the button's toolbar outlined, Contact typed in the link box, and the Contact page outlined in the list
  6. 6. Press Save at the top right. Then open the page on your site and click the new button once to check where it goes.

    Show the picture
    The top right of the editor with the Save button outlined, above the settings of the new button

If your site has the Classic Editor plugin, pages open as one big text box with no blocks, so there's no Buttons block to add. Your theme or a plugin may have its own button for that. CMSHands adds buttons on block themes, to pages made in the block editor.

A button is a link made to stand out. Keep its words short and say what happens next, like “Book a class” or “Call us”. To check it, open the page in a private window, where you're logged out, and click it once.

Or ask for it in the chat

“Add a “Book a class” button at the end of the Workshops page that links to the Contact page.”

Download the free plugin

Get the plugin here instead

Why it won't wreck your site

  • Nothing changes until you press the button. Every change comes as a card that names it. Nothing happens until you press the button or Not now.
  • You see it first. Old words in red, new words in green. For layout, before-and-after pictures on a computer and a phone.
  • One click undoes it. When something can't be undone, like deleting a page or a plugin, the card says so before you press.

Where CMSHands stops

  • A button on a page made with a page builderPage builders such as Elementor or Divi lay out pages their own way. It can't add a button there. Use the builder's own button.
  • A floating button that follows you down the pageThat needs code CMSHands can't add yet. A button at the end of a page, or anywhere in it, works.
  • Buttons that come as code, like some payment buttonsSome payment and share buttons are a snippet of code from another site. It adds plain buttons that link to a page or a web address.
  • A button in the header of an older (classic) themeA classic theme keeps its header in the theme's files, which it can't change yet. You'll know one by Appearance › Customize instead of Editor.
  • New colors or fontsIt uses your theme's own colors and sizes. It doesn't add new ones or restyle the whole site.

More it can do

Same chat, same OK button, on your own site.
  • Words and pages:

    Add a page

    “Add a page called Classes: Saturday classes, 10am, $45, book by email.”

    It took 12 seconds on our test site.
  • Health and checkups:

    A security check of your site

    “Check my site for security problems and tell me what to fix first.”

    It took 39 seconds on our test site.
  • Header and footer:

    Change your footer

    “Add our opening hours to the footer: Tue–Sat, 10am to 5pm.”

    It took 39 seconds on our test site.

Questions about buttons on a page

How do I edit a button in WordPress?

Open the page in the editor and click the button. Type over its words to change them, and press the link icon in the small toolbar to change where it goes. For its look, the Block tab on the right has Styles (Fill or Outline), then text and background Color. Press Save when you're done.

Can I add a button to my header?

Yes, on a block theme. The header is one piece every page shares: go to Appearance › Editor, choose Patterns, then Header near the top of the list, and add a Buttons block as in the steps above. You can ask CMSHands for it there too, though our test run above was on a page. On an older (classic) theme it can't change the header yet.

How do I add a buy or donate button?

Add a Buttons block as in the steps above and link it to the page that takes the money: a product page, a donation page, or a payment link from your payment provider. Some payment buttons come as a piece of code instead; those need the provider's own plugin. CMSHands adds plain buttons that link somewhere.

Can it add a back-to-top button?

A button at the end of a page that jumps back to the top, yes. A floating one that follows you down the page needs code it can't add yet. To make the first kind yourself, add a Buttons block and link it to #top. For a floating one, ask the chat to suggest a plugin from the WP plugin directory, checked against your WP and PHP versions.

Will the button match the rest of my site?

Yes. Before it writes anything, it reads your theme's colors and sizes, and the button it adds uses your theme's own button style, not new colors. On our test site it came out dark brown with round ends, the look Twenty Twenty-Four gives buttons there. You see it on the card before you approve.

Is it free to add a button with CMSHands?

To start, yes: 3 changes with no account, then 10 a month once you add your email. Questions are free, up to 30 a day.

Written by the CMSHands team. First published .

Add a button to your own page

  1. 1. Download the plugin.A free zip file
  2. 2. Upload and activate it.Plugins › Add Plugin › Upload Plugin
  3. 3. Give CMSHands a task.Press Start working, then ask in your words
Download the free plugin

Get the plugin here instead

Works best on WP 6.3 or newer with PHP 8.0 or newer. What works on older sites

Download the free plugin