Hello Friends,
Today I am going to share a helpful information about
Divi theme.
As we know that Divi theme is most popular paid theme of the WordPress who have provide a lots of prepaid features, so any one can create a modern stylish website without any coding knowledge.
Divi theme has provided a Divi Library features where we can create multi use section/module. We can make any section global and can reuse a this section on any pages.
Now let's come on topic to know how we can use the these global section in custom template using shortcode. If you want to use the section shortcode on any non divi page or in widget sidebar then you can use given below shortcode
[et_pb_section global_module="SECTION_ID_GOES_HERE"][/et_pb_section]
or if you want to use the global section within any custom template file then you need to use below code in your .php template file.
<?php
echo do_shortcode('[et_pb_section global_module="SECTION_ID_GOES_HERE"][/et_pb_section]');
?>
Note: You can find the section id from the url