Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hello,

    Thanks for your message. The Shortcodes of Vik Booking should not be published in your home page article, or the URL routing functions for the booking process will not work as expected. This is because the home-page is a special page with no permalink, it’s actually the root address of your website.

    For this reason, in the home-page we suggest to use the widgets of Vik Booking. More precisely, it’s a common technique to publish the “Search Form” widget in the home-page with the settings properly configured. In fact, the “page” settings will determine the action of the form, hence the landing page URL from which the booking process will be routed and started. From the dropdown menu of the “Page” settings for the “Search Form” widget you should select one of the active Shortcodes previously set up through Vik Booking.

    The best solution at the moment to publish a widget on a specific section of your home-page content, and not on a Sidebar, is to use the page-builder plugin of your Theme. Otherwise, the WordPress native functions will only allow you to publish the Vik Booking widgets on a Sidebar of your Theme, which are obviously dependent on your Theme settings and characteristics.

    We hope this is helpful.

    The VikWP Team

    Thread Starter rugarer

    (@rugarer)

    Hello VikW Team – thank you for the thorough explanation.

    Im sorry but it has got me way more confused now. The Divi theme im using doesnt have widgets expect for the default – sidebar and footer places.

    I can add a code section but then will only be able to add the shortcode but not able to add a widget. So this is where im getting stuck!

    Regards

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hello,

    We understand the situation, but this is probably something you should discuss with the developers of your Theme, as we don’t know what tools they offer or what are their requirements.

    The goal is to have one widget of VikBooking published inside the content of your home-page. What our plugin does is to install on your WordPress website all the available widgets, among which you can find the “Search Form” widget that you would like to add to your home-page content.

    Shortcodes should be used on any other page of your website except the home-page, and you don’t need your Theme for that, because everything can be handled by VikBooking. However, for the widgets this is something dependent on your Theme as well as on any page-builder plugin made available to build the content of the home-page article. Through the WordPress native functions, widgets can only be added to a Sidebar, and so if you would like to actually display a widget inside a specific block of the home-page article rather than on a Sidebar, you should ask the Theme developers what are the options you have available. What we can tell you is that for the moment there are no Blocks defined by VikBooking that would allow you to actually publish a widget, because a widget is not a block. For this reason, page-builder plugins that ship with the Themes often allow you to configure and publish a specific on a specific section of any articles. Some other Themes instead allow to create dynamic Sidebars where you can have your own widget, and such Sidebars can be published through Blocks on any section of your articles.

    This is why we suggest getting in touch with the developers of the Theme to see what options are available. As we said, the goal is to have a widget inside a specific section of a page (the home-page).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to show vikbooking hotel booking widget on home page’ is closed to new replies.