Is it possible to remove shortcodes from Divi easily if we change WordPress theme? That's a question that hangs around on social networks. I often see these topics of conversation where some people say that it is impossible to change theme after using Divi... Or that we can't go back once Divi has been used!
Right? Since when is your WordPress site married with your theme Divi? Know that you can remove Divi easily and without tearing your hair off!
In this article, I present a plugin that will be very useful to you if you decide to go from the theme Divi to another WordPress theme. You'll see that it'll only take you 10 seconds for clean the tracks that Divi left.

What happens if we turn off the Divi theme and activate another theme?
WordPress is fabulous for this: one can change theme in one click. Just go to the tab Appearance > Theme and activate the theme of your choice.
Only, there is a BUT... When changing the theme, the old one may leave traces. This is particularly the case for themes that use Builder pages as Visual Composer for example, to mention only him.
So you know that if you activate a new theme which does not use the same builder page as the old one, you may have surprises. This is also the case of Divi, who natively uses the Divi Builder (Divi Builder page).
If you need to understand the differences between Divi and the Divi Builder, I invite you to read this article.
In concrete terms, here is what will happen if you activate another theme after using Divi:
Version of a page built with the Divi Builder:

Version of a page built with the Divi Builder, after activation of another theme:

Okay, it's quite unreassuring, and it might worry you...
However, know that I never had to do Redesign to move from a Divi theme to another theme. Most of my clients ask me the opposite, i.e. from their current theme to Divi.
And most (not to say the whole) Divi users do not consider changing the theme after using Divi...
So you don't have to worry about it. But if one day you decide to change the theme, or if one of your clients asks you, you can easily rid Divi of !
Version of my cleaned Divi Shortcodes page:

Does that reassure you?
A few seconds were enough to pass from the page showing all the Divi shortcodes one page clean. I specify that my content was not lost in passing.
I'll explain how...
How to clean your site and remove shortcodes from Divi?
The Divi Builder build your pages using shortcodes. These are invisible when the Divi theme is active but become visible when you activate another theme.
Want to see him at work? Discover how the Divi Builder works
If your site is composed of several dozens of page built with the Divi Builder, he would be againstâproduction remove shortcodes from Divi by hand. It would be tedious and it could make you totally dingo!
Good news, there is a freemium plugin that will remove shortcodes from Divi. In addition, you will have nothing to set: it is Cleaner Lite Shortcode.

All you have to do is go to Add Extensions tab and type his name in the search bar to find and install it.
Once enabled, this plugin will detect all "broken" shortcodes, i.e. all the unused shortcodes.
This plugin is therefore miraculous if you wish delete the theme Divi. But it will also clean all unused shortcodes generated by other plugins.
I am thinking in particular of the time that I had added in each article of one of my blogs, a shortcode type "click to tweet". The day I decided to delete this plugin, I had fun cleaning all my items... Cleaner Lite Shortcode I'd have saved some crazy time!
In addition, once the plugin has cleaned your pages, you can go to its dashbord and check the work it has done:

- In the dashbord, you will find most essential information such as:
- the number of shortcodes "broken"
- cleaning dates
- types of shortcodes deleted
I suggest you see Cleaner Shortcode in action in the following video:
Can we go back and reactivate the Divi theme?
It is likely that after having activated another theme, you would regret your good old theme Divi
In this case, it was all possible to go back. Shortcode Cleaner removes broken shortcodes. This means that if you reactivate Divi, the shortcodes will no longer be "unused" and your layout will return to its original construction (if you have not changed your content in the meantime).
Not even afraid to move on to the Divi theme! Find out everything you can do with...
In conclusion...
I really wanted to write this article for several reasons:
- because Cleaner Shortcode can be very useful for delete all types of shortcode which are no longer used, not only those of the Divi Builder,
- because I wanted to answer people who said that Divi "it's dirty" and leaves traces...
- because I wanted to prove that he is can move from Divi to another theme without getting tired.
Don't hesitate to leave a comment if you have ever had to clean up lots of shortcodes, maybe you have other solutions?

Merci de ce post !
J’ai eu le cas rĂ©cemment d’un prospect qui a refusĂ© ma proposition de travailler avec moi si j’utilisai DIVI, de peur de se retrouver avec une « purĂ©e de short codes » en cas de casse ou de changement de thĂšme.
Si j’avais su ! Je ne connaissait pas ce plugin.
Me voilĂ armĂ© pour la prochaine fois đ
Oui Michel ! C’est sĂ»r que c’est rassurant… et c’est un bon argument đ
Merci Lycia, super article. Est-ce que ce plugin peut servir aussi pour nettoyer son thĂšme Divi si on a ajoutĂ© des choses/plugins qu’on utilise plus par exemple ? Histoire dit-on d’avoir un code « plus propre » ?
Hello Murielle ! Comment ça va ??? Ăcoute, ce plugin marche pour tous types de plugins qui utilisent des shortcodes et qui sont dĂ©sactivĂ©s. Que ce soit le Divi Builder ou un autre plugin ça marche. Si tu rĂ©actives le plugin, tout remarche… Ce plugin « cache » les shortcodes « cassĂ©s »
Merci infiniment pour l’info. J’ai fait des recherches et il y a maintenant une version PRO qui permet de supprimer dĂ©finitivement les Shortcodes de la base de donnĂ©es. https://codecanyon.net/item/shortcode-cleaner-clean-wordpress-content-from-broken-shortcodes/21253243 Ce qui est prĂ©fĂ©rable si l’on ne prĂ©voit pas de retourner Ă Divi. Les Shortcodes de Divi prennent beaucoup de place dans la Base de donnĂ©es et augmente son poids significativement.
Il existe une autre technique plus laborieuse (que j’ai essayĂ© et cela fonctionne) qui est expliquĂ© ici : https://victorfont.com/remove-divi-shortcodes-changing-themes/
Super ! Merci StĂ©phane pour le partage de cette info ! Effectivement, le plugin prĂ©sentĂ© ici est intĂ©ressant si on veut conserver les shortcodes au cas oĂč… mais ils restent en BDD. Ton plugin parait efficace. Merci !
Génial !!!
Merci Délycieuse Lycia !
C’est rare de trouver des pages en français pour des astuces Divi.
Et encore plus rare de trouver des infos aussi utiles que celles que tu fournis ici.
J’ai juste une question (bĂȘte) de dĂ©butant : dans quelle table de la BDD se trouvent les shortcodes gĂ©nĂ©rĂ©s par Divi ???
J’ai besoin de tripatouiller ces shortcodes afin de gĂ©nĂ©rer des pages/sections/modules de façon dynamique, selon l’identitĂ© du user.
Merci encore.
Lamine
Hello Lamine !
Merci Ă toi đ
Vu ta question, je suppose que tu n’es pas si dĂ©butant que ça đ
Je vais avoir du mal à te répondre pour la simple et bonne raison que je ne me suis jamais posée la question (et que mes connaissances en termes de BDD sont plutÎt primaire).
Si tu trouves une rĂ©ponse satisfaisante, n’hĂ©sites pas Ă la poster ici ultĂ©rieurement, ça pourrait aider d’autres utilisateurs !
A bientĂŽt
Lycia
Merci Lycia !
Je te jure, je suis vraiment dĂ©butant, grand dĂ©butant mĂȘme !
J’essaie de faire un site web basĂ© sur les thĂšmes et layouts DIVI.
Mais j’ai besoin de savoir oĂč sont stockĂ©es les infos des pages que je gĂ©nĂšre, et notamment les shortcodes.
Pour l’instant je n’ai pas encore oĂč ils sont mis dans mes bases MySQL. Mais (grĂące Ă toi encore), en lisant simplement le layout gĂ©nĂ©rĂ© par DIVI (https://astucesdivi.com/wp-content/uploads/2018/10/version-apres-suppression-divi.jpg), j’ai compris que les shortcodes sont traitĂ©s comme de simples balises html dans le code.
J’arrive alors Ă modifier « en dur » les pages que je souhaite en y insĂ©rant, au bon endroit et en faisant attention Ă la syntaxe, les balises (shortcodes) que je veux.
Je sais, c’est une mĂ©thode un peu trop militaire, mais que veux-tu ? Quand on n’a pas de grives on mange des merles !
Thx & Bye
MDR ! Oui, des merles !
Ok, ben tant mieux si ça a pu t’aider… Toutefois, je pense aussi que ces fameux shortcodes sont stockĂ©s en BDD… Mais oĂč ? C’est une grande question đ
Les shortcodes ne sont pas réellement stockés dans la BDD comme ID avec un contenu.
En fait, ils sont utilisĂ© dans la colonne « post_content » de la table « wp_posts » qui contient toutes les rĂ©visions des pages/articles, etc…
Il suffit de faire une recherche « [et_pb_content » dans la base de WordPress pour voir oĂč ils sont stockĂ©s.
Par contre je ne vois pas comment fait le plugin pour les garder (dans lâhypothĂšse qu’il les supprime de la BDD).
Merci David pour ces précisions
intéressant à savoir, merci !
Bonjour,
J’ai une question gĂ©nĂ©rale : chaque builder utilise-t-il des shortcodes qui lui sont propres, ou bien existe-t-il une sorte de norme ou de protocole pour la syntaxe des shortcodes qui permettrait Ă©ventuellement d’utilise les mĂȘmes d’un builder Ă l’autre ?
D’avance merci.
Non Michel, il nây a pas de normes malheureusement