Support

Account

Home Forums ACF PRO Making a button “OnClick”

Unread

Making a button “OnClick”

  • We are updating out website currently, and added ACF, we have 2 templates, one for homepage and the other we use for our 56 locations landing pages.

    Everything is great, but I cant get our booking button to work properly, currently when you click book now, it will open our booking platform (Boulevard) by sliding out on the page and shows all stores, but we would like to have each landing page open directly to their booking section. The platform allows this, but I’m unsure how to add it to a button on ACF.

    Here is a example location, on the top you click book now, and it shows all the locatios.
    https://vj8mbnx6h7v.c.updraftclone.com/locations/keene/

    The button is linked to our domain.com/location/keene/#book-now

    But this tutorial shows how to have it open directly to the location:

    https://support.boulevard.io/en/articles/5941527-self-booking-link-to-specific-items-or-categories

    We successfully did this before using WPBakery but now when I try to add it, the button disappears and it becomes a sting of text and looses the button.

    How can I make the top right book now button use this code:

    Each location has a unique code given, for example here are 3 locations:

    Utica: blvd.openBookingWidget({ urlParams: { locationId: ‘0e34d867-7641-4d0e-baf0-2cbd9cffa4b3’, path: ‘/cart/menu/Floatation Therapy/s_2ed759cf-586b-4c57-9594-dc4f0882dc77’, visitType: ‘SELF_VISIT’ }});

    Abq: blvd.openBookingWidget({ urlParams: { locationId: ‘4996c667-9811-4071-add0-680c0d5f41c6’, path: ‘/cart/menu/Floatation Therapy/s_2ed759cf-586b-4c57-9594-dc4f0882dc77’, visitType: ‘SELF_VISIT’ }});

    Alexandria: blvd.openBookingWidget({ urlParams: { locationId: ‘cdcd6aad-ab17-4694-a37d-c95e846fc203’, path: ‘/cart/menu/Floatation Therapy/s_2ed759cf-586b-4c57-9594-dc4f0882dc77’, visitType: ‘SELF_VISIT’ }});

    How an I implement this? We use a PHP template, and dont currently add things to functions.php, we just add it to the template ad call the code.

    Any help would be amazing!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.