• Resolved franklnx

    (@franklnx)


    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.org

    Tested with two different themes.

    Thanks for your support!
    Best Regards,

    • This topic was modified 2 years, 9 months ago by franklnx.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Beaver Builder shortcodes in a PHP file (outside the post editor)’ is closed to new replies.