zivexs Posted November 11, 2020 Share Posted November 11, 2020 (edited) Site URL: https://www.bushmans.si/vadbe-online/ashtanga-yoga No idea! But would be happy if you can help! How to Change/ translate date on events page. For example on this site I don't want an english written Friday. Friday>>> Petek November>> Novjember Plus. Is it possible to change "from" infront of the price? Edited November 11, 2020 by zivexs Link to comment
Beyondspace Posted November 12, 2020 Share Posted November 12, 2020 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script><script></script> <script src="https://momentjs.com/downloads/moment.js"></script> <script src="https://momentjs.com/downloads/moment-with-locales.js"></script> <script> $(document).ready(function() { if ($(".event-date").length) { var translate = moment($(".event-date").attr("datetime")).locale("SL").format('dddd, MMMM D, YYYY'); $(".event-date").html(translate); $(".product-price") .contents() .filter(function() { return this.nodeType == 3; }).remove(); } }); </script> Add this to Advanced Code Injection Header if you dont mind use some javascript on your site 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
Beyondspace Posted November 12, 2020 Share Posted November 12, 2020 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
TineDkv Posted December 22, 2020 Share Posted December 22, 2020 This is really helping me out, thanks! Could this code also work on the previous/next dates that are showing at the bottom of the event page? Bc they are still in English and I would like to have them in Dutch. Thanks! Beyondspace 1 Link to comment
tuanphan Posted January 2, 2021 Share Posted January 2, 2021 @TineDkv Have you solved pagination title yet? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Seanth Posted January 19, 2022 Share Posted January 19, 2022 On 11/12/2020 at 10:54 AM, bangank36 said: <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script><script></script> <script src="https://momentjs.com/downloads/moment.js"></script> <script src="https://momentjs.com/downloads/moment-with-locales.js"></script> <script> $(document).ready(function() { if ($(".event-date").length) { var translate = moment($(".event-date").attr("datetime")).locale("SL").format('dddd, MMMM D, YYYY'); $(".event-date").html(translate); $(".product-price") .contents() .filter(function() { return this.nodeType == 3; }).remove(); } }); </script> Add this to Advanced Code Injection Header if you dont mind use some javascript on your site Hi @bangank36 Could you please help with the Thai dates? Thank you so much! Link to comment
Beyondspace Posted January 19, 2022 Share Posted January 19, 2022 (edited) 11 hours ago, Seanth said: Hi @bangank36 Could you please help with the Thai dates? Thank you so much! Kindly change a little my previous code from locale("SL") to locale("th") About the format of date you can get the reference from: Edited January 19, 2022 by bangank36 Seanth 1 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
Seanth Posted February 11, 2022 Share Posted February 11, 2022 @bangank36 Thank you for your help, but the code seems to have alter the date to the same date for all events. Please see below. Now sure what happened. I just pasted the code. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://momentjs.com/downloads/moment.js"></script> <script src="https://momentjs.com/downloads/moment-with-locales.js"></script> <script> $(document).ready(function() { if ($(".event-date").length) { var translate = moment($(".event-date").attr("datetime")).locale("TH").format('dddd, MMMM D, YYYY'); $(".event-date").html(translate); } }); </script> Link to comment
KyleNathan Posted February 14, 2022 Share Posted February 14, 2022 Hi there! I have a English & French website. I would like to remove the periods after the words samedi. and translate View Event. Thanks for any help you can provide! Link to comment
KyleNathan Posted February 14, 2022 Share Posted February 14, 2022 Once you click View Event, the time still appears even though I removed it from the previous page. Is there a way to remove it? Thank you! Link to comment
tuanphan Posted February 19, 2022 Share Posted February 19, 2022 On 2/14/2022 at 12:40 PM, KyleNathan said: Once you click View Event, the time still appears even though I removed it from the previous page. Is there a way to remove it? Thank you! Can you share link to page in screenshot? We can help easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
KyleNathan Posted February 22, 2022 Share Posted February 22, 2022 The french days are not translating consistently either. On this page they appear one way: https://ltea-test.squarespace.com/evenements-et-activites And then when you click for more information they change again: https://ltea-test.squarespace.com/evenements-et-activites/1npnousoq8mya2m4ynxifso4072ihk Thanks for any help you can provide! 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