Beaver Builder shortcodes in a PHP file (outside the post editor)
-
Hello,
I need to include a small Beaver Builder layout under the header and before the main content. So I created a page with Beaver (slug is “extraheader”) and used the shortcode in the header of my child GP theme:<?php echo do_shortcode( '[fl_builder_insert_layout slug="extraheader"]' );?>
Unfortunately when the layout is rendered outside the main content it only shows plain unformatted text. Many of the required styles are missing.
This is the simple page/layout I want to include:
https://www.elbafishingblog.org/extraheader/
and this is the result once included (see below nav and above main content):
https://www.elbafishingblog.orgTested with two different themes.
Thanks for your support!
Best Regards,
- The topic ‘Beaver Builder shortcodes in a PHP file (outside the post editor)’ is closed to new replies.