Jump to content

Break Tag <br> In Auto List Carousel Showing on Live Site Only

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Site URL: https://plantain-giraffe-spe5.squarespace.com/

Hello all,

been searching and troubleshooting for a few hours on this and can't seem to find a fix.

 

Site is https://plantain-giraffe-spe5.squarespace.com/

pass: BSRG

 

I have an autolist carousel that i am trying to add manual line breaks to using a <br> tag in the title. 

 

I have used this method for auto list sections before with no issue, not sure what is happening when the save button gets hit but its driving me bananas

 

On the editor version of the site, when editing the carousel item titles, the line breaks are respected and the <br> tag is hidden. Once i hit save, the line breaks go back to defaults and the <br> tag remains visible.

 

Site is currently in a build but will be a business plan and will have full funcationality of css.

 

Anyone have any ideas or insights?

 

screenshots attached for reference

 

Correct layout.png

Visible BR tags.png

  • Replies 3
  • Views 445
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
Posted

You can use this code to Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $(".list-item-content__title").each(function(){
    $(this).html($(this).text());
  });
});
</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!)

Create an account or sign in to comment

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


×
×
  • 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.