How to Add a Button to Your Site

You can add a button to any Post, Page or Widget using any of the following codes depending on your needs. Make sure to replace the link & button text with your own.

Button link:

<a class="button" href="LINK GOES HERE">BUTTON TEXT HERE</a>

Button link that's centered:

<center><a class="button" href="LINK GOES HERE">BUTTON TEXT HERE</a></center>

Button link that opens in new window:

<a class="button" target="_blank" href="LINK GOES HERE">BUTTON TEXT HERE</a>


If you are adding the code to a widget, you can use the Custom HTML widget or a text widget. If using a text widget, make sure to use the text editor, not the visual editor. Once the code is added to the text editor, you can switch back to the visual editor to add the rest of your content.

If you are making a page or post using the block editor, you can add one of the code to a Custom HTML block.

If you are using the classic editor and adding the code to a page or post, you’ll add it through the text editor, not the visual editor.