How to Add HTML to WordPress Website or Blog
Hello, Today, I’m gonna talk about the simplest way to add HTML to WordPress website or blog. You can add HTML code to particular post, page, and sidebar. So, with any further due, let’s get started.
How to insert HTML code into any post?
You can add HTML code in particular post like if you want to add any promotional banners, offers and promo code banners, ad code etc. in the post then you have to copy that HTML code and paste into the post. Like I want to add My HostGator Offer banner to the post then simply open the link and select the offer.
Now, copy the HTML code and go to the post on which you want to add the banner. On the upper right side, you will see Visual and Text mode. By default, you enter in Visual mode click on Text to switch. Now, paste that code and again switch to the Visual mode to check the banner is properly added or not. Now, publish the post to get live.
So, in this way, you can insert HTML code into any post.
How to insert HTML code into any page?
You can also insert HTML code into the page. It is the same procedure like insert code into the post. Here is my another promotional banner, you will get 25% off on Web Hosting from HostGator. Click on the link and select the offer. Copy the HTML code and open the page. Go to Text mode and paste that code. Switch to the Visual mode to check the banner. Publish the page to get live.
So, in this way, you can insert HTML code into any page.
Read More: HostGator 1 Cent Hosting Discount Coupon
How to insert HTML code into the sidebar of your website/blog?
To insert ad code and other HTML code into the sidebar of your website/blog then you copy the code and log in to your dashboard of your website/blog. Select Appearance and go to widgets. Select Text Widget and drag to the sidebar section. Now, open the text widget paste the code into it. Save the changes and refresh your site page. You will see ad code is live on your sidebar of website/blog.
How to insert HTML code into headers and footers?
You can also add code to the head and body section of your WordPress website or blog. The simplest way to add code to the head tag and body tag is Headers and Footers plugin. You should check out my previous article about How To Add Header And Footer Code In WordPress.
I hope you like this tutorial. thumbs if you like and share if you love. Leave your comments below.
Subscribe our newsletter/RSS for latest updates.
See you in next one.
Also published on Medium.