• Resolved Nathan Hawkes

    (@natehawkes)


    Hi,

    I don’t know if this would be with Site Origin’s PageBuilder, but I can’t seem to get the booking widget, nor the shortcode, working withing PageBuilder. This seems to be the only plugin I have that won’t work in there. When I use the standard content editor, it displays on the front end fine, but it will not show at all on pages created with PageBuilder.

    I have added the shortcode to the WordPress text widget, I have also added it to the Black Studio TinyMCE Widget. The latter works when it is in a standard sidebar (the former doesn’t), but neither work at all in PageBuilder. The included widget doesn’t work within PageBuilder but will work within a standard sidebar. It makes no difference which theme I am using either, whether it is a custom theme or a default WordPress theme (Twenty Sixteen, Twenty Seventeen, etc,).

    Is this an issue that I can fix from my side or does it require time from yourself to push out an update?

    • This topic was modified 7 years, 10 months ago by Nathan Hawkes.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Nathan Hawkes

    (@natehawkes)

    I’ve just had a look with what I can, and it looks as though the issue is related to the value set for $rtb_controller->form_rendered. Even when I create a new, blank page and add in only that widget or that shortcode, even if it is the only content on that page, it won’t display the widget if I use PageBuilder. I have commented out the conditional for rtb_print_booking_form() (file: includes/template-functions.php, lines 37 – 41) and that seems to work fine, so I think the issue might lie somewhere around there.

    • This reply was modified 7 years, 10 months ago by Nathan Hawkes.

    Hi @natehawkes,

    You’re probably right that it’s related to the form_rendered property. The booking form’s JS only works for a single form, so if the form is printed twice on a page, it can cause problems. For this reason, the form will only print once.

    This can cause the issue you describe with some page builders, if the page builder overwrites the_content. Have you set the Booking Page option under Bookings > Settings > General? Try setting that to empty (no page).

    When that setting is set, the plugin automatically appends the booking form to the page’s content. But if a page builder plugin blows away that content, the plugin doesn’t know that. So when you go to render it as a component in the page builder, the plugin refuses to print it again.

    So it might work for you if you don’t set the Booking Page. Let me know.

    Hi there, I’ve encountered the same issue with a client and SO pagebuilder. It’s like you said Nate. Set the general setting on empty and then use the shortcode anywhere you want. It seems like that the last change the general setting already provides the code automatically. So that’s also an option. Thing is that some people want tos add more text and images on the reservation page so then it’s hard to tell where the form will start. But for me it works like a charm…

    • This reply was modified 7 years, 9 months ago by drrob67.

    Hi @drrob67,

    Glad you were able to get it sorted. Thanks for reporting back.

    For me didn’t work it. Any suggestion?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t use within PageBuilder’ is closed to new replies.