Jump to content

Code not working - portion of the code uses a website URL that doesn't match my site

Recommended Posts

Site URL: http://alphachallenge.co.nz

Hi,

I am trying to add some code to my site but it doesn't want to work. It does include a link to a website that it not mine. It is for an accomodation supplier that I am trying to promote.

The code is 

<div id="search-widget_IO312PWQ"><script>!function(e,t,a,n,c,r){function s(t){e.console.log("[Guesty Embedded Widget]:",t)}var i,d,l,o,y,m,g,h,p,u;n&&(i=n,d=t.getElementsByTagName("head")[0],(l=t.createElement("link")).rel="stylesheet",l.type="text/css",l.href=i,l.media="all",d.appendChild(l)),o=function(){try{e[a].create(r).catch(function(e){s(e.message)})}catch(e){s(e.message)}},h=!1,y=c,m=function(){h||this.readyState&&"complete"!=this.readyState||(h=!0,o())},(g=t.createElement("script")).type="text/javascript",g.src=y,g.async="true",g.onload=g.onreadystatechange=m,p=g,(u=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,u)}(window,document,"GuestySearchBarWidget",https://s3.amazonaws.com/guesty-frontend-production/search-bar-production.css,https://s3.amazonaws.com/guesty-frontend-production/search-bar-production.js,{"siteUrl":"bookings.wanakaholidayhomes.co.nz"});</script></div>

Any help would be greatly appreciated. 

Many thanks

Kim

Link to comment

So I found an answer that you gave another person having the same issue (https://forum.squarespace.com/topic/151994-custom-code-works-in-wix-but-not-squarespace/ and my widget is now working but my footer is now displaying below the widget. I have no idea why it is different in designing vs saving / real time.

https://www.alphachallenge.co.nz/accomodation

Thanks so much in advance for your help.

Screenshot 2021-07-23 145307.png

Screenshot 2021-07-23 145250.png

Link to comment

Do you need help on these?

Site URL: http://alphachallenge.co.nz/

1. (Desktop – Homepage) Scroll bar at bottom of the page

alphachallenge.co_.nz-01-min.png

2. (Tablet/Mobile – Footer) Word break

alphachallenge.co_.nz-02-min.png

3. (Tablet – overlay menu) Want to move button higher?

alphachallenge.co_.nz-03-min.png

4. (Race detail) Browser tab name still show “Service 1”

https://www.alphachallenge.co.nz/race-details

alphachallenge.co_.nz-04-min.png

 

5. (Covid) Browser tab name still show “General 3”

https://www.alphachallenge.co.nz/covid

alphachallenge.co_.nz-05-min.png

6. (Tablet – Our sponsors) Equal image – title – text? (As on desktop)

https://www.alphachallenge.co.nz/our-sponsors

alphachallenge.co_.nz-06-min.png

7. (Tablet – Our sponsors) The same here

https://www.alphachallenge.co.nz/our-sponsors

alphachallenge.co_.nz-07-min.png

8. (Tablet – Our sponsors) Reduce white space

https://www.alphachallenge.co.nz/our-sponsors

alphachallenge.co_.nz-08-min.png

9. (FAQs)  Browser tab name still show “FAQs 1”

https://www.alphachallenge.co.nz/faqs

alphachallenge.co_.nz-09-min.png

10. (Tablet – FAQs)  Want to increase text width?

https://www.alphachallenge.co.nz/faqs

alphachallenge.co_.nz-10-min.jpg

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.