This guide will walk you through the process of installing the venuedirectory Client Portal widget on your website.
If you're using WordPress, click here to jump to the WordPress plugin setup.
Standard Website Setup
Step 1: Include the JavaScript File
Add the following script tag to the <head>
or just before the closing </body>
tag of your page:
<script src="https://www.myeventsportal.co.uk/widget/scripts/client-search-widget.js" type="text/javascript"></script>
Step 2: Add the Widget Markup
Place the widget markup in the <body>
section of your web page. This container is where the widget will be displayed.
Example:
<cp-search-widget widget-key="[WIDGETKEY]" layout="horizontal" button-label="Find"></cp-search-widget>
Replace [WIDGETKEY]
with the key provided to you by venuedirectory.
Step 3: Configure the Widget
The widget supports the following attributes:
Attribute | Description | Default Value |
---|---|---|
widget-key | (Required) Unique key that identifies your client portal | – |
layout | Display layout: horizontal or vertical | horizontal |
country-label | Label for country field | Country |
destination-label | Label for destination field | Destination |
venue-label | Label for venue name field | Venue Name |
delegates-label | Label for attendees field | Attendees |
group-label | Label for group field | Group |
supplier-label | Label for supplier field | Supplier Name |
postcode-label | Label for postcode field | Postcode |
button-label | Text displayed on the search button | Search |
Widget Fields
The widget’s fields are settings-driven and mirror the search bar fields used in the full version of your Client Portal.
Custom Styling
You can apply your own CSS to style the widget to match your website’s branding and layout.
Setup for WordPress Users
Step 1: Download the Plugin
Download the latest WordPress plugin (ZIP)
Step 2: Install the Plugin
- In your WordPress admin, go to Plugins → Add New.
- Click Upload Plugin, select the downloaded ZIP file, and install it.
- Go to Plugins → Installed Plugins and click Activate next to Venuedirectory Client Portal Widget.
Step 3: Add the Widget to a Page
- Go to Appearance → Widgets.
- Drag the Venuedirectory Client Portal Widget into your desired widget area.
Step 4: Configure the Widget
Expand the widget settings:
- Enter your widget key (provided by venuedirectory).
- Select your preferred layout:
horizontal
orvertical
.
If you have any issues with setup or need further assistance, please contact our support team.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article