Jump to content

Capio

Member
  • Posts

    4
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Capio got a reaction from paul2009 in Only the first code block of a page loading   
    Oh ok! I'll give that a go. Thanks very much!
    -----
    Took a couple goes but I've got it working now. Thank you ever so much for the help! I've been stuck on this for a few days now. 
  2. Thanks
    Capio reacted to paul2009 in Only the first code block of a page loading   
    This isn't specific to Squarespace; the code that you're using has been written in a way that it can only be used once per page.
    If you want to have multiple instances you'll want to rewrite the code in subsequent blocks to allow it to work and to avoid unnecessary duplication.  
    For example, the following HTML creates an element with an ID of world-map:
    <div id="world-map"></div> As an ID can only be used once per webpage, you will need to modify the second code block to use "world-map2" or something similar. Bear in mind that every reference to "world-map" will need to be changed too. For example, document.getElementById('world-map').clientWidth will need to be changed and so on.
    Did this help? Please give feedback by clicking an icon below  ⬇️
×
×
  • 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.