Przejdź do głównej zawartości

HubSpot CMS

Ta treść nie jest jeszcze dostępna w Twoim języku.

HubSpot CMS supports custom HTML modules and site-wide header/footer code, making it straightforward to embed Wink components on marketing pages and landing pages.

  1. In HubSpot, go to Marketing → Files and Templates → Design Tools.
  2. Open your active theme’s main.css or use the global content settings.
  3. Alternatively, go to Settings → Website → Pages → Custom Code.
  4. In the Head HTML field, add the stylesheet:
    <link rel="stylesheet" href="https://elements.wink.travel/styles.css">
  5. In the Footer HTML field, add the script and application loader (replace YOUR_CLIENT_ID):
    <script src="https://elements.wink.travel/elements.js" type="module" defer></script>
    <wink-app-loader client-id="YOUR_CLIENT_ID"></wink-app-loader>
  6. Save and publish.
  1. In the Design Tools, create a new module of type Rich Text or HTML.
  2. In the module’s default content, paste the component HTML:
    <wink-content-loader
    layout="HOTEL"
    id="YOUR_LAYOUT_ID"
    ></wink-content-loader>
  3. Save the module and drag it into any page template or page using the page editor.

Add a component directly in the page editor

Section titled “Add a component directly in the page editor”

If you prefer not to create a module, you can use a Custom HTML section in the drag-and-drop editor:

  1. Open the page in the HubSpot page editor.
  2. Click Add and choose a Custom HTML or Embed section.
  3. Paste the component tag into the HTML field.
  4. Click Apply and publish the page.
ComponentHTML tagPurpose
Content loader<wink-content-loader>Display hotel cards, grids, maps
Lookup<wink-lookup>Search bar for destinations
Search button<wink-search-button>Open itinerary picker
Account button<wink-account-button>Sign in / user menu
Itinerary button<wink-itinerary-button>Show current itinerary
Itinerary picker<wink-itinerary-picker>Full itinerary form
Shopping cart<wink-shopping-cart-button>Cart summary button

See Web Components for the full attribute reference.