zartgesotten
8/3/2017 - 9:51 AM

Add Beaver Builder template anywhere via hooks in functions.php

Add Beaver Builder template anywhere via hooks in functions.php

<?php 
/* https://www.ultimatebeaver.com/blog/display-beaver-builder-templates-sitewide/ */
// Function to hook Beaver Builder Template

function hook_my_template() {
  echo do_shortcode( '[fl_builder_insert_layout slug="my-awesome-template"]' );
}

add_action( 'fl_before_footer', 'hook_my_template' );
?>