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

Change/ translate date on events page


zivexs

Question

4 answers to this question

Recommended Posts

  • 0
<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 BaNgan from 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, Youtube Gallery for Squarespace
If 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
  • 0

image.thumb.png.c106a77c00c157b79019e88970d5484c.png

Greeting, it's BaNgan from 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, Youtube Gallery for Squarespace
If 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...