Archived topic
Ho to get rid of junk code
3 replies · Started by George on August 12, 2019
When I look at the source code of my pages, I see lots of junk code. A lot of it comes from edits, like opening and closing tags with no content in between them, bolding words in a phrase several times instead of bolding the entire phrase with one set of tags, etc. There is also other messy code which is not necessary, some of it from page builder plugins which can add tons of code. I imagine that this could slow the site down, is this correct? Or could it negatively impact SEO?
Is there a way to clean up messy and unnecessary code without doing it all manually on each page?
Hi there,
I imagine that this could slow the site down, is this correct? Or could it negatively impact SEO?
You are likely correct. Not sure about SEO though.
Is there a way to clean up messy and unnecessary code without doing it all manually on each page?
I'm not aware of an easier way to clean it up unfortunately.
Have you tried running WP Optimize? It does a decent job of cleaning up your database, which should get rid of a lot of the junk code.
Thanks for sharing :)