Jump to content

Removing Commas with Javascript/Jquery

Recommended Posts

Site URL: https://jolsonweddings.com/stories

I'm looking for a way to target and replace commas in my blog summery block, so that the metadata below the title displays as "Destination Wedding" instead of "Destination, Wedding".

I'm hoping there's a way to target and replace the comma with some kinda of script, I was able to do something similar with my homepage using the following code:


<script>$('.sqmuse-slider-type-8').html($('.sqmuse-slider-type-8').html().replace("Elopement,Wedding","Elopement Wedding"));
  $('.sqmuse-slider-type-8').html($('.sqmuse-slider-type-8').html().replace("Destination,Wedding","Destination Wedding"));

Can't seem to do the same with the Blog Summary though, anyone have any ideas?

Link to comment
  • Replies 1
  • Views 534
  • Created
  • Last Reply


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.