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 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, 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 best , and see my profile. Thanks for your support! 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