Site icon Tidy Repo

Raw HTML

We can all agree that WordPress is great. It enables you to build your dream website with ease and without having to possess any coding skills. It makes web development, a thing that can be quite challenging, straightforward and understandable. Like everything, even WordPress has its drawbacks. Well, we don’t necessarily have to call it a drawback, but more of an annoyance.

Now, you might be wondering, what exactly am I talking about. I am talking about is the way WordPress likes to format the content you feed to it. For example, how it turns newlines into paragraphs, apostrophes into typographic quotes, and other small things that can be quite a big eyesore for someone who wanted their content to be displayed in a certain way. Getting annoyed by this issue is what initiated the creation of the plugin we will be reviewing in this article, the Raw HTML plugin.

What is the Raw HTML plugin?

If you have ever spent hours trying to figure out how to showcase your content in the desired way, but WordPress just wouldn’t let it happen, this plugin is for you. That is because, without the proper plugin, nothing will stop WordPress from doing its thing to your content. Raw HTML is the plugin that can and will stop it.

It is an open-source, free plugin for WordPress websites that disables WordPress from automatically formatting your content. How does Raw HTML do it? To have your content protected from the unwanted formatting made by WordPress, it needs to be wrapped something called the raw tags.

Raw tags come in two different forms:

  1. “[raw]…[/raw] “
  2. “<!–raw–>…<!–/raw–>”

Both types, do the exact same job of preserving the style definitions and JavaScript you put in your code. The only difference is that the second type of tags aren’t visible to the people looking at your content even if you disable the Raw HTML plugin.

How to enable/disable specific formatting filters

When you activate Raw HTML, it will add checkboxes in the “edit post” area. Each checkbox is intended for enabling or disabling one of the WordPress formatting filters.

Enabling or disabling one of the filters will affect only the content put in-between the raw tags.

Shortcode and other code preservation

A shortcode that finds itself within raw tags won’t be performing its function unless you enable the usage of shortcodes within your raw tags. That is done by adding the shortcode attribute in the opening raw tag, like this “[raw shortcodes=1]”.

Also, the code that is found in post excerpts won’t work within raw tags and will be automatically removed by the plugin. To stop this from happening, you will need to add this line “define(‘RAW_HTML_KEEP_RAW_IN_EXCERPTS’, true);” in your wp-config.php file.

Extra information

Installation

This plugin can be installed in three ways:

Pricing

The regular version of Raw HTML is free. The Pro version costs 15$, can be installed on an unlimited number of sites and will receive updates for a period of 1 year.

Conclusion

Hopefully, this article gave you some insight on how Raw HTML can help you have your site and the content on it looking exactly how you envisioned it. Let’s be honest, nothing is worse than coming up with a look/format for your content just to see it be completely disregarded by WordPress. To show WordPress who is really in charge, all you need to do is just install this plugin and you won’t be wondering where all your formatting effort went. It literally won’t cost a penny but will save you from so much unnecessary hassle.

Exit mobile version