Skip to content

Instantly share code, notes, and snippets.

@rayflores
Created December 28, 2017 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rayflores/c6d991bc4808967f0ee798a828c53c60 to your computer and use it in GitHub Desktop.
Save rayflores/c6d991bc4808967f0ee798a828c53c60 to your computer and use it in GitHub Desktop.
place beaver builder modal in header...
jQuery(document).ready(function()
// when the builder isn’t active…
if ( typeof FLBuilder == 'undefined' && typeof FLBuilderLayout != 'undefined' ) {
// grab main node and replace here, then grab inner header div and replace here
jQuery('.fl-node-5a4543bc2c784').insertAfter('.hero-inner');
}
//And here if you need it to run when the builder is active…
if ( typeof FLBuilder != 'undefined' ) {
// Your JS here.
}
)};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment