English (United Kingdom)
Knowledge Base  >  Vik Booking  >  Widgets  >  Search Form  >  None or Invalid Page Displayed

When making a search from the widget Search or Horizontal Search, the search results page will take, by default, the same WordPress Page as the page where the widget was published.

In order to apply a specific WordPress Page to the search results page and to all the pages of the next steps, it is necessary to force the Page from the parameters of the Search Widget.

Applying the correct WordPress Page is very important for the Widgets associations. For example, the Home Page of your website could display the search widget as well as a slider widget that you wouldn't like to keep in the pages of the booking process. You will need to force (from the widgets parameters) to redirect to a page with a theme which does not contain the widgets you do not wish to display.

Sometimes, it can be a good technique to create a "ghost page" from the WordPress administrator section where you can use a specific theme that will never be displayed on the front-end website. It will be sufficient to not publish that Page on any menu. Basically, such pages should only be used to have a certain page theme which displays only certain widgets, and they should always have a VikBooking shortcode in their text. You should then force your Search widgets to display their search results in such a page, which will only have the widgets shown in the page's theme.

IMPORTANT: an invalid configuration of the Shortcodes, or a missing Page assigned to the parameters of the widget, may not show any results or the expected page. This is because the landing page or the link produced, will not belong to the plugin Vik Booking, and so no contents will be displayed.

The screen shot below shows how we have assigned a specific Shortcode (previously created through the Vik Booking plugin) to the "Page" parameter of the Widget Search Form. This way, the booking form will use as landing page the Post/Page of WordPress that is using the Shortcode we called "Search Form". This WP page renders the plugin Vik Booking through the Shortcode, and so the search results will be correctly displayed.

Search Widget Parameters

Last Update: 2018-12-12
Helpful?