In this tutorial, I will show you how to add HTML to a WordPress post/page.
As you are using your WordPress website, you may want to do specific customisations like creating a custom HTML contact form on a particular page or post of your website. This will require that you have knowledge on how to add HTML to WordPress, it will also require that you have some technical skills.
Below, I have covered everything you need to know on adding HTML code to a page or post on your WordPress website. Let’s get started.
How To Add HTML To A WordPress Post/Page
There are three ways you can add HTML code to a post or page on your WordPress website. They include:
- Add a custom HTML block
- Edit a single block as HTML
- Edit an entire page or post HTML with code editor
Add A Custom HTML Block
- Log into your WordPress admin dashboard.
- Go to the sidebar menu in the admin dashboard, select the Pages or Posts options, depending on the one you want to add the HTML code to.
- Scroll and select the post you want to add the HTML to and click on Edit.
- Go to the section you want to add the HTML to and click the plus ‘+’ button.
- A search box will appear, enter the HTML in the provided search box.
- Click the Custom HTML option.
- A new box will appear, enter the HTML code you want.
Edit A Single Block As HTML
- Go to the post or page you want to add the HTML code to and click on Edit.
- Go to the block you want to modify and click on the 3 dots to open more options.
- Select the Edit as HTML option.
- You can then proceed to modify the HTML code for the block.
- To switch back to the visual editor, click the block, go to option, and select Edit visually.
Edit An Entire Page/Post HTML With Code Editor
- Go to the post or page you want to add the HTML code to and click on Edit.
- When the post or page opens, click on the 3 dots at the top right corner of the screen to open more options.
- Under Editor, select Code Editor.
- The entire text on the post or page will appear as an HTML code, you can proceed to add the code you want.
You can now proceed to add HTML to a WordPress post/page. If you have any questions, you can leave it in the comment section.