//Shortcode to show the module
function showmodule_shortcode($moduleid) {
extract(shortcode_atts(array('id' =>'*'),$moduleid));
return do_shortcode('[et_pb_section global_module="'.$id.'"][/et_pb_section]');
}
add_shortcode('showmodule', 'showmodule_shortcode');
Create on Divi library the module you want to show, and after save hover on the name. At the bottom of the Administration you will see in the link (the URL appears in the bottom left hand corner when using Chrome) that after “post=” a number will follow
So use the above ID to create the shortcode like this:
[showmodule id="378"]
or like this is=nside php files:
<?php echo do_shortcode("[showmodule id="378"]"); ?>
Source: https://liampedleydesign.co.uk/placing-divi-modules-anywhere-using-shortcodes/