• Resolved Erwin

    (@baksteen)


    Hi, I am trying to convert this code snippet/plugin from Elementor into Beaver Builder. I want Beaver Builder to become the default editor when clicking the title on the page overview screen.

    Beaver Builder’s link to open the editor looks like this:
    domain.com/page-slug/?fl_builder.

    I try to accomplish this by the following bit:

    $beaverbuilder_editor_link = site_url( $slug . '?fl_builder');

    But then the slug isn’t part of the link. So it looks like:
    domain.com/?fl_builder

    Anyone any idea how to get this to work? Cheers!

    • This topic was modified 2 years, 8 months ago by Erwin.
    • This topic was modified 2 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try this way. https://gist.github.com/JeremyEnglert/cd0227c776d2dab0029436f75e8bd422

    That’s an old gist but I think it should still work.

    Thread Starter Erwin

    (@baksteen)

    Heya, cheers for answering! It kinda works but it’s not exactly what I am looking for. I want to change the default action when clicking on a page title. Normally, it’d go to the page editor (default WP editor/Gutenberg).

    The Elementor gist however changes that default action. While the gist you linked makes Beaver Builder the only available editor (basically). It’s helpful, so thanks for that, but not exactly what I want to achieve.

    $beaverbuilder_editor_link = add_query_arg( 'fl_builder', '', get_permalink($post_id) );

    then this is the correct version of your code that you’re looking.

    Thread Starter Erwin

    (@baksteen)

    That’s it! Thanks so much, works perfectly now!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Beaver Builder as the Default Editor’ is closed to new replies.