Home › Forums › Support › GP and Beaver Builder – shortcodes and hooks This topic has 5 replies, 3 voices, and was last updated 6 years, 9 months ago by Andrew. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts August 8, 2016 at 4:54 am #216552 Andrew Hi I’m using GP and Beaver Builder. I put the following code in the “Before Header” hook. 1: [fl_builder_insert_layout slug=”before-header”] 2: <b>Test</b> Line 1 is a shortcode that displays a saved row from Beaver Builder. When I’m logged in, both lines run. I see the saved row and the rendered HTML. When I’m not logged in, I only see the rendered HTML. Any help appreciated. Thanks. Andrew August 8, 2016 at 9:57 am #216608 TomLead Developer Lead Developer Hi Andrew, Are you using any caching plugins? If so, try clearing your cache. If not, try executing the shortcode like this: <?php echo do_shortcode( '[fl_builder_insert_layout slug="before-header"]' ); ?> Make sure to check the “Execute PHP” button. Let me know π August 8, 2016 at 1:53 pm #216658 Andrew Hi Tom My bad. The row was saved on a page that was set to “Private”. Learn something new every day. Your PHP code worked too. Thanks. Andrew August 8, 2016 at 3:16 pm #216677 Lyle @Andrew – Thank you so much for putting me onto using BB shortcodes with the GP hooks! That opens up a whole lot of possibilities! π Cheers! Lyle August 8, 2016 at 11:32 pm #216754 TomLead Developer Lead Developer Glad you got it working π August 13, 2016 at 4:57 pm #217985 Andrew @Lyle – all good. The combination of GP theme, GP hooks and BB – awesome! π Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In