Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey Sogwap,

    Thanks for posting! You can use a core builder method to check if it’s active or not. Try something like this…

    if ( ! FLBuilderModel::is_builder_active() ) {
      // Load stuff!
    }

    Let us know if you’ve any questions with that.

    Ben

    Thread Starter Sogwap

    (@sogwap)

    Hi Ben, thanks for responding.

    The page in question is a Beaver Builder page. So I’m assuming BB will be active when editing and viewing the page.

    Will this code return false when editing the page?
    But true when the page is being viewed normally?

    I need a code snippet that returns true only when being viewed normally. Will this work?

    Plugin Author Justin Busa

    (@justinbusa)

    Hey Sogwap,

    Yep! FLBuilderModel::is_builder_active only returns true when the editor is active.

    FLBuilderModel::is_builder_enabled returns true when the builder has been used to edit a post/page instead of the default editor.

    Justin

    that’s exactly what I’m looking. Please put this feature in BB. Thumb up

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey Bmen,

    By feature did you mean the fullpage.js be incorporated to BB? Feel free to add that as a feature request on our User Voice Forums. ๐Ÿ™‚

    Ben

    Is this incorporated into the plugin now? Not the fullpage.js but the

    if ( FLBuilderModel::is_builder_active() ) {
      // Load stuff!
    }

    so I can set a specific theme template on pages where BB is active / in use? both while in edit mode and when looking at the published post?

    Also referencing what they were discussing on this closed thread https://wordpress.org/support/topic/is-beaver-builder-in-use?replies=8

    Thanks

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey One3rdnerd,

    Thanks for posting!

    Yes, that method’s already available on our builder along with FLBuilderModel::is_builder_enabled.

    Hope this helps, and let us know if we can assist further! ๐Ÿ™‚

    Ben

    The version I got to work in my theme was

    if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_enabled() ) {
    
    }

    Thanks

    Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey David,

    I just realized you were the same guy that submitted a support ticket. ๐Ÿ™‚

    Glad we could help and enjoy!

    Ben

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Editing BB pages with fullPage.js jQuery plugin’ is closed to new replies.