dl_23 Posted October 1, 2021 Share Posted October 1, 2021 Hi all, When inserting an element (a button in this case) into squarespace using HTML in a code block, should I give it a unique element ID? If so, are there any requirements/best practices for creating the unique ID? Thanks! Beyondspace 1 Link to comment
Wolfsilon Posted October 1, 2021 Share Posted October 1, 2021 The code block will receive it's own unique ID regardless if you've specified one yourself inside the HTML code. Unless you need to set an ID for your code to work, you should be able to use the one Squarespace sets for you to customize it. Link to comment
Beyondspace Posted October 2, 2021 Share Posted October 2, 2021 6 hours ago, dl_23 said: Hi all, When inserting an element (a button in this case) into squarespace using HTML in a code block, should I give it a unique element ID? If so, are there any requirements/best practices for creating the unique ID? Thanks! This extension will give you unique id of the code block, so you can target your button without assign id to it Chrome Web Store - Extensions (google.com) BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment