You have some HTML code and you want to know how to insert it in a post or page or you just want to know where you can add it?
Let me teach you in this tutorial how to use HTML in WordPress.
I will use this piece of HTML. Note: For most HTML code you will also need CSS code.
<button type=”button” onclick=”alert(‘You are awesome!’)”>Click Me!</button>
Now let`s add it to your post or page.
- Go to your “Posts” => “Add New” or “Pages” => “Add New”
- Switch view to “Text” as shown in the image bellow
- Paste your HTML code
- Click “Publish”, to publish the post or the page.
- Now, go to the published URL and click on the button that we have just created.
Did you like this article? Please leave me a comment if you have any questions.