Jump to content

Adding simple code to a commerce site

Recommended Posts

Site URL: http://www.troutcreekwildernesslodge.com

I have a commerce account that should allow for Javascript integration into my website but it seems to still not be working.

I've generated the code from Lodgify to embed into my accommodations pages; I'll leave it up on this page and the code here.

If someone could help explain what I'm doing wrong I would really appreciate it.


Page is here: https://www.troutcreekwildernesslodge.com/caretakers-cottage

<script type="text/javascript" class="" src="https://cdn.lodgify.com/portable-search-bar/1.60.6/renderPortableSearchBar.js"></script><div><div id="lodgify-search-bar" data-website-id="350282" data-language-code="en" data-search-page-url="https://troutcreekwildernesslodge.lodgify.com/en/all-properties" data-dates-check-in-label="Arrival" data-dates-check-out-label="Departure" data-guests-counter-label="Guest" data-guests-input-singular-label="{{NumberOfGuests}} guest" data-guests-input-plural-label="{{NumberOfGuests}} guests" data-location-input-label="Location" data-search-button-label="Search" data-new-tab="true">
  <style type="text/css">
  html {
    --lodgify-ui-action-color: #1b7542;
    --lodgify-ui-action-darker-color: #165e35;
    --lodgify-ui-action-lighter-color: #a4c8b3;
    --lodgify-ui-action-contrast-color: #ffffff;

Link to comment
  • Replies 1
  • Views 206
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

It appears you have selected the display source option in the code block editor.


Make sure the toggle is in the left as shown above. When the toggle is to the right it means display the code as a source listing as opposed to running the code.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.