Tiffc-MG Posted December 29, 2021 Share Posted December 29, 2021 Site URL: https://www.merakigold.com/collections-shop/going-camping Code for estimated delivery date not loading without refreshing page. After refreshing works fine. Ajax on this template is disable. <style> #futuredate{color:#acacac;display:inline-block;text-align:center;font-size:1.0rem} #futuredate> div{padding:10px; background:#ffffff; display:inline-block} #futuredate div> span{padding:10px; display:inline-block} </style> <center> <div id="futuredate"> <div><div class="text">Order Before Midnight EST Estimated Delivery Date - <span class="dates" id="date"></span></div> </div> </center> <script> var today=new Date(); today.setDate(today.getDate() + 8); var y=today.getFullYear(); var m=today.getMonth()+1; var d=today.getDate(); var dates=m+'-'+d+'-'+y document.getElementById("date").innerHTML=dates; </script> Beyondspace 1 Link to comment
Beyondspace Posted December 30, 2021 Share Posted December 30, 2021 2 hours ago, Tiffc-MG said: Site URL: https://www.merakigold.com/collections-shop/going-camping Code for estimated delivery date not loading without refreshing page. After refreshing works fine. Ajax on this template is disable. <style> #futuredate{color:#acacac;display:inline-block;text-align:center;font-size:1.0rem} #futuredate> div{padding:10px; background:#ffffff; display:inline-block} #futuredate div> span{padding:10px; display:inline-block} </style> <center> <div id="futuredate"> <div><div class="text">Order Before Midnight EST Estimated Delivery Date - <span class="dates" id="date"></span></div> </div> </center> <script> var today=new Date(); today.setDate(today.getDate() + 8); var y=today.getFullYear(); var m=today.getMonth()+1; var d=today.getDate(); var dates=m+'-'+d+'-'+y document.getElementById("date").innerHTML=dates; </script> You can consider turn off ajax for your site Ajax loading – Squarespace Help Center BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! 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
Tiffc-MG Posted December 30, 2021 Author Share Posted December 30, 2021 Ajax Loading has already been turned off Link to comment
creedon Posted December 30, 2021 Share Posted December 30, 2021 Is this the date you are talking about? It loaded the first time I viewed the page. 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment