Do you want to turn off automatic post formatting in WordPress?
in this article we will learn how to turn Off Automatic Post Formatting in WordPress
We’ll show you how to prevent automatic formatting in WordPress articles in this article.
There are a variety of ways to show code in WordPress that allow you to bypass the default formatting. You may find them in our guide to displaying code in WordPress.
Some expert users, on the other hand, may wish to totally disable WordPress auto-formatting on their sites. This would enable users to simply bypass WordPress’s formatting checks and show raw text wherever they wanted on their website.
Let’s have a look at how you may quickly deactivate automatic WordPress formatting on your website. We’ll demonstrate two approaches so you may choose the one that best suits your needs.
This solution necessitates the addition of custom code to your WordPress site. Take a look at our instruction on how to copy and paste custom code snippets in WordPress if you haven’t done so before.
To begin, enter the following code into your theme’s functions.php file or a site-specific plugin’s functions.php file.
If some text is wrapped inside the raw shortcode, the above code tells WordPress to skip the formatting choice.
You must now add the HTML block to your WordPress post editor in order to skip WordPress formatting. You can paste your unformatted text or code into the raw shortcode in the post editor.
The drawback of this strategy is that it is incompatible with the block editor. It may act in an unanticipated way even within the HTML block.
Method 2: Using a plugin, disable automatic formatting in WordPress.
This way is simpler, but it necessitates the usage of the Classic Editor plugin, which is no longer supported. The primary problem of this strategy is that if you decide to use the block editor in the future, you’ll end up with a mess.
The Classic Editor plugin must first be installed and activated. See our guide on how to disable the block editor in WordPress for more information.
The Raw HTML plugin must then be installed and activated. See our step-by-step guide on installing a WordPress plugin for more information.
After then, you may either create a new post or edit one that already exists. Switch to Text mode on the post edit screen and type your unformatted text into the raw shortcode.
You can now publish or save your changes and examine them in a preview window to see how unformatted text looks.
We hope that this article taught you how to turn off automatic formatting in WordPress posts. You might also be interested in our entire WordPress security guide or our SEO tips for blog posts.