Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load Divi Library Component in Non Divi Page in WordPress

I am using the Divi theme on a WordPress site. I have saved some common components into the Divi Library.

Now I would like to show one of these saved library components on a non-Divi page but cannot for the life of me figure out how to do this.

I'm hoping I'll be able to do something like this:

echo get_divi_layout(MY_LAYOUT_ID);

Might be wishful thinking but if anyone has any pointers I'll be eternally grateful!

like image 623
BIOSTALL Avatar asked Oct 15 '25 13:10

BIOSTALL


1 Answers

Managed to get it working by adding the below in a bbpress template file:

$is_page_builder_used = et_pb_is_pagebuilder_used(get_the_ID());
echo do_shortcode('[et_pb_section global_module="28365"][/et_pb_section]');

Don't forget to update the global module post ID.

Hope it works for others.

like image 128
A.M. Avatar answered Oct 18 '25 05:10

A.M.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!