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

Events: How to edit "Google Calendar" and "ICS" text

Question

Site URL: https://miguelmateas.com/gigs

Hello to all of you lovely people! 

Does any of you know how to edit the text for these "add to calendar" links? 

I'd like them to just say "Add to Google calendar" and "Add to Apple calendar". I've tried to locate this with my rudimentary coding skills but I've failed miserably.

Thank you in advance! 🙏🏽

Miguel

image.thumb.png.68c8515021f44a6e4475c08ca9565dfb.pngto

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

Add to Home > Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
  jQuery(function($){
    $(".eventlist-meta-export-google").html(function() { 
          return $(this).html().replace("Google Calendar", "Tuan calendar");  
    });
        $(".eventlist-meta-export-ical").html(function() { 
          return $(this).html().replace("ICS", "Tuan ICS");  
    });
});
</script>

 


You can send your question to my email to get faster answer.

How to Setup Password & Share URL  Squarespace Customer Care

Share this post


Link to post
  • 0
Posted (edited)

With event detail + event list page, use this code instead

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
  jQuery(function($){
    $(".eventlist-meta-export-google, .eventitem-meta-export-google").html(function() { 
          return $(this).html().replace("Google Calendar", "Tuan calendar");  
    });
        $(".eventlist-meta-export-ical, .eventitem-meta-export-ical").html(function() { 
          return $(this).html().replace("ICS", "Tuan ICS");  
    });
});
</script>

 

Edited by tuanphan
typo

You can send your question to my email to get faster answer.

How to Setup Password & Share URL  Squarespace Customer Care

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...