Jump to content

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

Recommended Posts

  • Replies 5
  • Views 1.2k
  • Created
  • Last Reply

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>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

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>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.