How to Set Up the Venue Directory Client Portal Widget

Modified on Thu, 24 Apr at 4:51 PM


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:

AttributeDescriptionDefault Value
widget-key(Required) Unique key that identifies your client portal
layoutDisplay layout: horizontal or verticalhorizontal
country-labelLabel for country fieldCountry
destination-labelLabel for destination fieldDestination
venue-labelLabel for venue name fieldVenue Name
delegates-labelLabel for attendees fieldAttendees
group-labelLabel for group fieldGroup
supplier-labelLabel for supplier fieldSupplier Name
postcode-labelLabel for postcode fieldPostcode
button-labelText displayed on the search buttonSearch

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.

Widget Layout


Setup for WordPress Users

Step 1: Download the Plugin

Download the latest WordPress plugin (ZIP)

Step 2: Install the Plugin

  1. In your WordPress admin, go to Plugins → Add New.
  2. Click Upload Plugin, select the downloaded ZIP file, and install it.
  3. Go to Plugins → Installed Plugins and click Activate next to Venuedirectory Client Portal Widget.

Plugin Activation

Step 3: Add the Widget to a Page

  1. Go to Appearance → Widgets.
  2. Drag the Venuedirectory Client Portal Widget into your desired widget area.

Widget Placement

Step 4: Configure the Widget

Expand the widget settings:

  • Enter your widget key (provided by venuedirectory).
  • Select your preferred layout: horizontal or vertical.

Widget Config


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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article