How to copy divi page builder shortcodes - kary4/divituts GitHub Wiki

In case if you'll need to use divi modules anywhere else outside main content in your pages you can copy the shortcodes that divi generates and add them to the theme files or anywhere you need. Here is the process:

  1. Create the layout you need using divi page builder.
  2. Save the changes.
  3. Go to the wp admin>themes and switch for a moment to another theme, better to the default wordpress theme.
  4. Go back to the page where you created divi modules and you'll see all the divi shortcodes in the default text editor.

Now you can copy the shortcodes and use them as shortcodes. If you use Divi page builder plugin, don't forget to deactivate the plugin. Check a video tutorial below http://youtu.be/tIXxdYeyTHo?hd=1

If you need to add the generated shortcodes to the theme files, for ex. to the index.php file that generates category/index pages in ET templates then just put the generated shortcodes into the following function:

<?php echo do_shortcode('[ADD DIVI SHORTCODES HERE]');?>

And another solution: you can enable the default WordPress editor to see the added divi module shortcodes and copy/paste theme. Here is another tutorial https://www.youtube.com/watch?v=VLFh-Gx73ro&feature=youtu.be&hd=1

If you need to use Extra modules from Category Builder page in regular pages then check this tutorial please: http://youtu.be/5nxQQUrYU_0?hd=1