Cleaning up Pagebuilder Shortcodes with Regex

We’ve all been there. Client comes to you and needs to move their site from a pagebuilder that uses shortcodes. You export the pages and posts and boom! Ugly shortcodes hogging up all the space.

You can go through and manually clean up the code from each post or page, but if you have a large site, that can take forever. 

I found the original expression on KirstenCassidy.com, but it ended up removing all of the shortcodes, which didn’t work for me because I used the native WordPress Export Tool to get the content from the original site. So I simply added a fusion_ to the beginning of the expression and voila!

I also ended up using Atom, which is a great free editor. Just make sure you choose the Regex option after you open the find tool.

To find the opening bracket:

\[fusion_(.*?)\]

To find the closing bracket:

\[/fusion_(.*?)\]

This can be adapted for WP Bakery or any other pagebuilder that’s giving you an issue.

Share on facebook
Share
Share on twitter
Tweet
Share on linkedin
Share
Share on pinterest
Pin

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Other Stuff You Might Like

Looking for Hosting?

Stafford Creative uses and recommends Siteground for fast, reliable hosting for every project and budget.

*Stafford Creative may receive a small commission with each signup.