How do I install the widget on one page?

Do you only want to offer Boei on your contact page? You can!

Boei supports this flexibly with conditions. Based on conditions you can tell Boei in which situation which widget should be loaded.

In this article, we show you how this works.

Approach

Suppose you now have one widget on your website. This is now shown on every page. You want to hide the widget and only show it on the contact page.

SCR-20230423-jy0

We will use conditions to hide the widget and only show it on the contact page. The first step is simple, click on "new condition".

SCR-20230423-k5c

Give the condition a name so you can identify it later. The name is not shown to customers.

SCR-20230426-k8b

When the condition has been created, click on "edit".

SCR-20230426-k8l

Now you can set the condition. You do this as follows:

If rule: This is the rule that will check the condition. For example, you have "Page URL contains", which means that the rule is valid when the URL your customer visits contain the word or characters.

Has value: You can set which word to search for here.

Then display this widget: Self-explanatory, but this allows you to set which widget should be displayed (or not).

We will now set this up so that Boei is hidden everywhere. We set that if the page URL contains the value / , Boei should not show a widget.

Examples of pages that would match:

  • your-site.com/contact
  • your-site.com/other-page
  • .. All pages

SCR-20230426-k9o

With Boei being hidden everywhere, let's set another condition. We use the method that Boei goes through the conditions one by one. So Boei uses the first match.

We give the condition a name and set it up.

We set that if the page URL contains the value /contact, Boei should show the widget.

Examples of pages that would match:

  • your-site.com/contact

SCR-20230426-kba

As mentioned, order matters. We drag the new condition above the old one using the dots on the left.

SCR-20230426-kc9

The final result then looks like this:

SCR-20230426-kcj

That's it, and Boei only shows the widget on the contact page.

Feedback Questions

Last updated: Jul 17, 2024