How to Add HTML code in a WordPress Blog Post?

Web and Digital
WordPrax's picture
HTML to WordPress

WordPress is a Free and open source content management system (CMS) which is based on PHP and MySQL. Currently more than 28% of the internet world’s websites are created using WordPress. WordPress is the most popular website management system in use on the internet. Earlier WordPress was thought of best fit only for blogging websites but now it has evolved so much that it is being used for all kinds of websites be it Blogs, E-Commerce, News, Fashion etc.

Due to so much popularity there are many companies offering WordPress website development services to clients and businesses all over the world. Most of the people still choose WordPress ahead of other CMS when it comes to their choice of CMS.

Most of the WordPress users spend most of their time in the Visual Editor which is also known as WYSIWYMG editor, the What You See is What You Might Get Editor.

WordPress has a Visual Editor to emulate how your content will look like once published within your WordPress Theme but it has some limitations.

One of the said limit is that it appears hard to publish HTML in a blog post. Actually it isn’t that much difficult. You just need to switch to the HTML or Text Editor on the Post/Page panel.

Also remember there are so many companies which offer HTML to WordPress conversion services as it is a way to design and develop great websites with so many benefits.

Here we are giving you some points which you must consider before you can publish the code on your WordPress blog.

- WordPress Automatically fixes the code which is poorly formed

WordPress will automatically fix the code which is formed poorly. If you somehow mess up a link or HTML element then WordPress will not recognize it as properly formatted code hence it will fix it for you by replacing < with &lt or it will change the other code to make it appear as text.

- WordPress automatically removes unwanted or broken code

WordPress will automatically remove the code which is unwanted or looks broken. If you are using WordPress.com then you will not be permitted to publish JavaScript, PHP or other code in your blog posts or anywhere else. You can publish HTML if you have written it properly in the HTML/Text Editor.

- WordPress Visual Editor expects whatever inside it to be publishable

The WordPress Visual Editor actually expects everything within it to be publishable text or short-code. Short-code means the code which displays video and other media or features.

- WordPress Text/HTML Editor expects everything in it to be HTML

The WordPress Text/HTML Editor actually expects everything within it to he HTML or something WordPress can use to generate code in HTML.

- WordPress has changed HTML Editor to Text Editor

WordPress has recently changed the name of the HTML editor to Text editor in site WordPress.com. This change has been included in the WordPress release.

Actually there are more than 66 HTML codes permitted in WordPress posts, Pages and Widgets. You can use these codes to make lists, links, images, headings, blockquotes or whatever content you wish to add into your website,

Now steps to write in HTML in a WordPress website:-

  •  In the Page or Post panel just switch to the HTML\Text Editor.
  •  Now Move your cursor to the spot or place where you want to add the HTML.
  •  Now paste or type the HTML code into it. Check and verify to make sure you have written it properly.
  •  Now Save the draft or publish it and switch back to the Visual Editor to continue.

 

We have just discussed some of the ways to add HTML code into the WordPress blog post. With these kind of features WordPress continues to remain at top among the choice to create awesome and feature rich websites including the blog websites for which WordPress is the top choice.