Jump to content

CalifLRev

Member
  • Posts

    9
  • Joined

  • Last visited

Reputation Activity

  1. Like
    CalifLRev got a reaction from tuanphan in Automatic Line Breaks in Summary Block and Blog Pages   
    Here's how it's done:
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
    <script>
    $(document).ready(function() {
      $('.blog-categories').each(function() { // select all elements with class "categories" and loop through them
        $(this).html($(this).html().replace(/\s/g,'&nbsp;')); // replace all white spaces with nbsp
      });
    });
      </script>
    <script>
    $(document).ready(function() {
      $('.summary-metadata-item--cats a').each(function() { // select all elements with class "categories" and loop through them
        $(this).html($(this).html().replace(/\s/g,'&nbsp;')); // replace all white spaces with nbsp
      });
    });
      </script>
×
×
  • 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.