Innovate | Connect | Transform
ContactService statusUSD $

GICT knowledge base

How to add HTML to a WordPress Page or Post?

Published

WordPress

WordPress is the most powerful content management system available on the internet. It is very flexible and we can use WordPress to create almost any type of web application. By default, WordPress is a blog management system. However, We can use free or paid plugins and themes to create any type of website using WordPress.

WordPress provides Visual and Text options to edit your articles or content. In visual mode, you do not have to write the tutorial in HTML. While in the Text mode, you have to manually type the basic HTML to create the content. However, WordPress does not provide us an option to enter HTML snippets in the content. You can use the basic HTML in Text mode but it is not recommended to use it for complex or custom HTML snippets.

In this tutorial, I will show you how to input any type of HTML snippets in content. We will use a plugin called Insert HTML Snippet to create HTML snippets and insert them into the content using short codes. So, Let’s get started with the tutorial.

Add HTML to a WordPress Page or Post

First of all, log in to the admin panel of your WordPress site. Then, click on the Plugins -> Add New from the left sidebar. In the search bar, search for Insert HTML snippet. Once found, Install and Activate the plugin.

Add HTML to WordPress post or page - Step 1

After the plugin is active, click on the XYZ HTML -> HTML Snippets from the left sidebar. On this page, you will see a list of snippets available in your WordPress installation. Then, click on the Add New HTML snippet to create a new snippet.

Insert HTML in a WordPress post or page

On this page, you will see a title field and the content textarea. Enter the title in title field. Then, create or paste your HTML code in the textarea. Once done, click on the Create button given at the bottom of the form.

Enter HTMl code in WordPress Page or Post

Now, you will see your new HTML snippet in the list of available snippets. Under the Snippet Short Code column, you will find a short code for that snippet. You can simply copy and paste that short code in your WordPress Page or Post to display that snippet.

You can use this plugin to create snippets for banners, Adsense code or any other advertising code too! So, this is how you can solve the problem. We hope you liked this tutorial. If you have any questions, Please let us know in the comment section given below.

Related guides

Account services are unavailable until the production backend is configured.