Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Search the Community

Showing results for tags 'javascript'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Forum
    • News and Announcements
    • Getting Started With Squarespace
    • Coding and Customization
    • Commerce
    • Selling & Scheduling Your Services
    • Feedback on Your Site
    • Images and Videos
    • Pages and Content
    • SEO and Marketing
    • Site Design and Styles
  • Colorado Designers's Topics
  • Squarespace Forum Club Guidelines's Topics
  • Austin, TX Designers's Club Discussion
  • New York City Designers's Club Discussion
  • Berlin Designers's Club Discussion
  • SEO Experts's Club Discussion
  • Photographers's Club Discussion
  • Graphic Designers's Topics
  • London Designers's Topics
  • Podcasters's Club Discussion
  • Custom Coding Help's Club Discussion
  • Atlanta, GA Designers's Topics
  • Seattle, WA Designers's Topics
  • San Diego, CA Designers's Topics
  • Dallas, TX Designers's Topics
  • Australia Designers's Club Discussion
  • Minnesota Designers's Topics
  • Minnesota Designers's Topics
  • Copywriters's Topics
  • France Designers šŸ‡«šŸ‡·'s Topics
  • France Designers šŸ‡«šŸ‡·'s Topics
  • Portland, OR Designers's Topics
  • Canadian Website Designers's Club Discussion
  • Los Angeles Designers & Devs's Club Discussion
  • South African Designers's Club Discussion
  • Brazil Designers's Club Discussion
  • Developers's Club Discussion

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Website


Location


Badges


Expert ID

  1. Anybody have any idea how to add h2 matrix text to a single page (home page)? Thanks!
  2. Hello. First time here on the forum. I looked through plenty of previous threads, but didn't find the answer to my specific challenge. I built a site recently, and all was fine until today, when I added custom code to have a booking window open within the same frame. It worked fine on the testing page, but as soon as I added it to the other pages (confirmed clean/accurate copy and paste), it stopped working AND now I can no long add links within text fields. I've used the required <style></style>, and have tested by html in a w3schools.com test window. Here is a li
  3. Dear Community, I am in the process of making my website Multilingual. For the moment I have set up a test Squarespace website to experiment on, though the implementation on my live website will be the same. Website: http://lychee-sheep-23gt.squarespace.com/ Password: 123456789 Template: Brine I have followed the guide found here https://www.bradgood.net/articles/multi-language-content-on-any-squarespace-template with great success. However, I am stuck on the following: On the mobile / tablet view I would like the Language switcher to appear on the bottom of the mobil
  4. I'm using Brine. I'm changing my logo image on specific pages by inserting the script below into the page header. However, since this only affects desktop with 'Header-branding-logo', the logo is not getting changed on the mobile versions of these pages. <script> window.onload = function() { document.getElementsByClassName('Header-branding-logo')[0].src = 'URL_TO_IMAGE'; }; </script> How would I add the functionality into this script or just use a new method to change the logo image on both desktop and mobile? Thanks in advance.
  5. Hello there, I have written a javascript with some jQuery to call an api and get some data to be rendered when a user clicks on a specific page. I have put this code inside the header of code injection section. But the problem is the script seems to execute only when user access the site the first time, not when they are accessing that specific page. Can anyone be able to help me out to have a workaround to this problem?
  6. Hi, I am working on a Squarespace store for a winery and need add some features to the checkout page. The customer's order cannot be processed unless it is a multiple of 12. I've been checking out forums for documentation of similar things but I haven't found much involving Squarespace pages. This website has a version of what I need (https://sage-hills-wine.myshopify.com/cart), however, I looked at their code and noticed that the "Order Limits" feature is integrated with Shopify, which I am not using. Does anyone have experience with this involving merely some custom code ins
  7. I want to empty out the cart when I press a button. I tried setting the "CART" cookie value to null but that didn't do anything. Any Ideas? Help would be appreciated im using the Brine Template.
  8. Hello! I'm trying to create a javascript function where after a customer adds something to cart, they are sent to the cart. At the moment, they stay on the product page. I created this javascript, and it works to send the customer to the cart. However, the product doesn't appear in the cart right away. It seems like I need a delay to give Squarespace some time to add the product to the cart. I'm hoping to add a 2 or 3 second delay to allow for this. The button says "Adding..." then "Added!", so I'm not concerned about experience. Any help that can be provided would be great!
  9. i have an embedded script on my site's homepage that uses JQuery's ready method to execute a function whenever I load my website. The code executes when I load the homepage the first time. But if I navigate to another page on my site and then come back to the homepage, the function won't execute again. How can I fix this? Here's the code: <div id="api_text"> <script> $().ready(function() { $.get( "https://example_url_api.com/", function(data) { const results = JSON.parse(data.body); let print_string = ""; for (var
  10. Hey guys, This might be a basic problem but I want to enter the code under into the website custom page since it would allow me to collect data from the website into google analytic. However, it keeps saying that the there's a 'SYNTAX ERROR ON LINE 1' and I don't know what is the problem since this a copy that Google Analytic gaved me, I don't think I can remove something. Please help me :)
  11. Hi, I want to ad the linkedin insight tag to my website. I browsed the forum and help guides but didn't find a solution. I don't know if it's possible. Anybody knows how to do that ? Here is a link to faq page on inkedin: https://www.linkedin.com/help/lms/answer/65521/the-linkedin-insight-tag-faqs?lang=en
  12. I've attached a screenshot of the page in question. I wanna make the "Continue: Choose Add-ons" button only clickable if the customer clicked the "Submit Requirements" button above it. I'd like the error message to display "Please submit requirements before continuing". What code should I inject into the header for this to work? Thank you so much!
  13. Hi! Iā€™m using the Brine template (Wav) and trying to customize my the gallery on my page so you can click a button to view thumbnails. I have the button, but Iā€™m stuck on how to show/hide the thumbnail strip. So far, I have added this to the code injection: <script>function myFunction() { var x = document.getElementById("the div"); if (x.style.display === "none") { x.style.display = "block"; } else { x.style.display = "none"; } }</script> and this is the button on the page: <button onclick="myFunction()">Thumbnails</button> <div id="the div"&g
  14. Greetings - I'm working on a site and have an embedded calendar... https://kwocv3.squarespace.com/calendar-events ...using this JavaScript that was provided to me... <div id="elvanto-calendar-1740"></div><script src="https://kwoc.elvanto.net/calendar_embed.js?c[]=add651f2-307c-11e5-af42-0673d9c9b5d6&fd=s&el_id=1740"></script> If you notice the events (see Sundays) - when you click on one, you get a pop-up that shows more details. However, I am unable to click on the "close" button. I've checked w/ the provider of this JS, but they said it would be s
  15. I'm working on a site using the Tremont template see here I would like to transfer the mouseover effects of the index-navigation and apply these to the main-nav at the top right of the screen so as when you hover over the menu items they change the background video/image see here. I have achieved a similar effect on other projects but am having difficulty with 1. targeting the background video and 2. placing the images I wish to replace it with. Thanks in advance, any help would be greatly appreciated as I've been battling with this one for too long.
  16. Hi everyone. Hope you can help.I am creating a website for children with fun activities on, based on a dog. The client would like me to feature a button on the home page that when children press, automatically plays the sound of the dog barking. They have put various recordings of this on Soundcloud. So I need to be able to get some code to automate this. Is anyone able to help please?Thank you!Lynne
  17. I've integrated a photography slider for comparing before & afters of construction jobs. It uses the gallery block to create the comparison slider. For some reason though these sliders dont load, and it just shows the two images stacked. If i reload the page sometimes it will work however. It seems very inconsistent, across all browsers and even mobile it'll either work or not. https://www.rebuildex.com/before-and-after Here is the tut I followed to implement the comparison slider: https://www.rebeccagracedesigns.com/plugins Any suggestions or alternatives would be greatly appreci
  18. I'm trying to load a group of blocks from one of my pages (/testimonials) into another page using jQuery's .load function (an Ajax method) and then display them with a fadeIn/Out animation to create a slideshow of testimonials on the current page. The load executes but the lines following do not. Here is a snippet of the code that's injected into the page header: $(document).ready( function() { $(".col.sqs-col-12.span-12:has(.sqs-block-quote)").addClass("slideshow"); $(".slideshow").load("/testimonials .col.sqs-col-8.span-8 .sqs-block.quote-block.sqs-block-quote.null"); $(".slideshow &
  19. We implement the Google Tag Manager Code in the header & body, but it doesn't wok. Why?
  20. I need some serious help here... My client has asked me to add a customer login to their third-party payment website. Normally, this would be a simple iframe or embed, but this place gave me code to add to the site. You can see what it looks like at https://thundercitymotorsok.com/login. I've got the visual 100%, but nothing is happening when I click the Login button.......... GRRRRRR I've tried using the third-party helpdesk but they are useless. I'm not a programmer, so this is out of my wheelhouse. The site is on 7.1 and I can't figure out how to disable AJAX in the 7.1 system to see if th
  21. Hello, Is it possible to upload js files? Thanks a lot in advance,Marinske.
  22. I uploaded a simple javascript file to my Squarespace site using this option . The javascript file contains alert("Hello"); nothing else. If I reference the files from <script src="path to the file"></script> all loads on desktops and on mobile devices. If I reference this file as <script src="path to the file" type="module"></script> it loads in desktop browsers, but in all mobile browsers (tested on iPhones), the script doesn't load. I then created a simple HTML page that referenced this JS file with type="module" and uploaded both files to my ISP.
  23. When I add JavaScript Animated Typing with Typed.js, the scrolling gets messy. Not at first, but when you go to another page eg. Blog, project, event -> then go back to one of the links in navigation bar (except home). If you then try to scroll on the page, it will not work. I have contacted Squarespace support, but they cannot help with custom code. Recording of the issue: https://video.drift.com/v/abzXQTKvDfo/ Typed JS: https://mattboldt.github.io/typed.js/ Site: https://skih.no/Password: 123456789 I have tried many different typed js, but they all have same issue. I think the prob
  24. https://codepen.io/kppsean/pen/GRKvqzz I am trying to place this code into a squarespace website, nothing is working though. I've used html code block for the html. CSS in the overall page css, and tried uploaadding the JS as a file, injecting it in the header, and placing the JS code in a script tag in the html block. What am I missing?
  25. Hi all, I am a UX design graduate student who is based in NYC. Currently I have a portfolio website needed somebody for helps. If you are seeking a front-end project for experiences and exercises, please feel free to contact me! Thanks~~
Ɨ
Ɨ
  • Create New...