lukecav / awesome-beaver-builder

Awesome extensions for the Beaver Builder page builder plugin for WordPress.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Awesome Beaver Builder Extensions

Extensions for the awesome Beaver Builder page builder plugin for WordPress.

Table Of Contents

Modules

Modules to add to your theme or plugin

Custom Field Types

These are additional settings field types to use in your custom modules.

Add-On Plugins & Libraries

Layouts

Have you designed a layout you'd like to share? Shoot me a link!

Beaver Builder friendly Themes

Know of a free or premium theme with great Beaver Builder support? Send me the link!

Beaver Builder Child Themes

Beaver Builder Reference

Common Snippets

How to check if a page is using a builder layout:

<?php
// Include this function in functions.php of your theme.
function is_builder_layout() {
  if (class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_enabled()) return true;
  return false;
}

// Inside page.php, single.php, or singular.php use is_builder_layout() to determine what kind of layout to display.
if (is_builder_layout()) {
  // big wide open edge-to-edge space for builder to use.
} else {
  // default page layout, two column w/ sidebar maybe? Go nuts.
}
?>

How to default new pages to use Beaver Builder instead of the WordPress Editor.

function make_beaver_builder_default_editor( $post_ID, $post, $update ) {

  // Enable BB Editor by default?
  $enabled = true;

  // On the first insert (not an update), set BB enabled to true.
  if (!$update) {
    update_post_meta( $post_ID, '_fl_builder_enabled', $enabled );
  }
}
add_action('wp_insert_post', 'make_beaver_builder_default_editor', 10, 3 );

There is also a nice collection of CSS Snippets for the BB Plugin and CSS Snippets for the BB Theme on the knowledge base

Hope this was helpful.

For any missing resources, please add them as issues. https://github.com/lukecav/awesome-beaver-builder/issues