No credit card. Takes under a minute.

Login
INSIGHTS4 MIN READ

Wordpress Stripping Code From My Website!

JohnnyMark1

Published on March 4, 2019

Published on Wealthy Affiliate — a platform for building real online businesses with modern training and AI.

Wordpress Stripping Code From My Website!

I've become re-interested in the possibility of building my two Wordpress sites into HTML-only sites, perhaps using the new version of Dreamweaver CC. I’ve noticed that it incorporates the current HTML5 tags, Doc type, a live split screen showing what your changes do to the page, as well as other neat features to make building responsive websites easier.

I’m thinking of this because I find myself at a crossroad again. Years ago I had purchased Adobe Web Premium CS3. I had built and maintained three or four small websites with intent for monetization. It was fairly easy to update files with Dreamweaver using FileZilla to FTP my updated files to the server. Eventually, CS3 became outdated, and I wasn't willing to move to cloud-based subscription, so I rebuilt three sites onto Wordpress.
I have two other small sites that I've left as HTML, because they're small local business sites with only eight or ten static pages each. The Doc types and some other improvements need updating, but they're still working just fine. There's no frustration with constantly having to update Wordpress and plugins all the time and they just don’t ever break.

Of the sites I've moved over to Wordpress, I’ve tried two or three different well-designed premium themes. I have enjoyed being able to switch back and forth between Visual and HTML modes. I tried the built-in page builder of one themes recently, but found it to be excruciatingly slow to build within their blocks, with many steps involved. I was spending so much time with these blocks, but it was only locking me into difficult-to-edit pages and posts.

Now recently, Wordpress has introduced their Gutenburg page builder. I’ve tried it and I’ve found the same great frustrations. So now I’ve installed the Classic Editor plugin and am fine with that. I need to work with the code sometimes and I enjoy having the design freedom to do many things.

I would switch back and forth between the Visual and Text (HTML) editors so as to help find my way around the page as I’m editing.
Now, however, I've rediscovered Wordpress's fatal flaw, that it's stripping my pages and posts of HTML tags and analytics tracking codes as I work on them. I’ve discovered that this occurs when I switch back and forth between HTML Text mode and the Visual editor mode.

Ready to put this into action?

Start your free journey today — no credit card required.

Hours of formatting work have disappeared repeatedly before I discovered what was happening. Now, I'm scouring the net and trying to find a solution to resolve this, but none have worked so far. I've tried adding several different code fixes to the functions.php file and have tried at least two different plugins, which were meant to resolve this, all to no avail.

The only thing that has worked to prevent Wordpress from perpetually wrecking my code and formatting, is to disable the Visual mode. But, by doing this, I now only see reams of text and code, which makes it difficult to navigate and find my place on the page.

I can view the current webpage design in a separate browser tab, but I no longer have the benefit of advanced page building tools, only basic tags.

Do a quick Google search and you'll find that this problem is frustrating many well-experienced webmasters. It’s more pervasive than we think.

It’s not related to specific Wordpress themes, it has to do with the TinyMCE HTML WYSIWYG editor Wordpress uses in its programming.

It keeps getting worse. Wordpress will shift tags around to encapsulate stuff I’ve never tagged. Not only is Wordpress stripping out simple HTML tags like <p>, <strong> and others, but they’re also stripping out needed scripts like onclick and others, which is used for Analytics tracking.

Wordpress has no right to do that! It’s my site, and I expect my interface to allow me to code and format it the way I want to! WordPress seems to think that we shouldn’t have the freedom to do our own coding and they’re changing things that disallow it. Thanks, WordPress.

So now, I'm looking to see if I'd be better off rebuilding my two Wordpress websites as HTML sites, perhaps using Dreamweaver CC, and ditching Wordpress altogether. I don't know, I've read about some frustrating things about Dreamweaver too. I could code the sites without Dreamweaver using something like Notepad++, but I'd stll have to learn php and MySQL to add blog capabilty if I wanted it. I'd just soon figure out a solution to this Wordpress problem and stick with it.

Does anyone have any thoughts on this? Have you experienced this problem yourselves? If so, have you found a solution to it?

-Mark

*

Share this insight

This conversation is happening inside the community.

Join free to continue it.

The Internet Changed. Now It Is Time to Build Differently.

If this article resonated, the next step is learning how to apply it. Inside Wealthy Affiliate, we break this down into practical steps you can use to build a real online business.

No credit card. Instant access.

2.9M+

Members

190+

Countries Served

20+

Years Online

50K+

Success Stories

The world's most successful affiliate marketing training platform. Join 2.9M+ entrepreneurs building their online business with expert training, tools, and support.

Member Login

© 2005-2026 Wealthy Affiliate
All rights reserved worldwide.

🔒 Trusted by Millions Worldwide

Since 2005, Wealthy Affiliate has been the go-to platform for entrepreneurs looking to build successful online businesses. With industry-leading security, 99.9% uptime, and a proven track record of success, you're in safe hands.