How to Beat the WordPress HTML Police

by Martin Malden

WordPress always used to frustrate the life out of me when I tried to use the HTML view to write posts.

I like writing in HTML. It’s a precise language and you’re able to control exactly how you want your page to look, especially when you combine it with CSS.

But WordPress has always had these filters in that reckon they know better than all of us.

But no more.

I was never that fussed about WordPress’ HTML police because I mostly wrote straightforward articles with a couple of images in and the Visual editor is perfect for that.

But I recently started with Jing – the free screen capture video app that lets you record up to 5 minutes of video.

And it’s so easy to use that I thought I’d put a couple of videos up as posts – which I did for my last two articles.

But that entailed moving over the the HTML view and pasting in the YouTube code. And as soon as I started messing around in the HTML view the WordPress HTML police moved in.

Because I enjoyed doing those video articles I decided that I’m going to do them more often in the future. But to do so, I somehow needed to neutralise the HTML police.

I had read somewhere that there was a plugin that removed the filters, allowing you to do everything in conventional HTML. So I went searching.

And what I found has worked brilliantly.

It’s called Raw-HTML and it allows you to do entire posts in HTML or just pick out sections of posts where, for whatever reason, you want to insert some specific code.

It only works with HTML, CSS and JavaScript – but that’s all you need for styling and laying out your articles.

After installing the plugin you can simply wrap the section you want to hand code in these tags:

<!--start_raw--> Your code snippet here <!--end_raw-->

And you can do everything between those tags in proper, conventional HTML. The WordPress HTML police are completely neutralised.

If this would solve a couple of your problems you can download it here.

Cheers,

Martin Malden.

Please share this article - I'm counting on you!
       
Found this article useful? Get free updates!

Get regular updates, plus a free eBook on how to set up a business online - join us!

Your details are safe with me.
My Privacy Policy.

Previous post:

Next post: