Jump to content

[Share] Adding a line break to blog title

Recommended Posts

Posted

To add a line break to blog title, you can follow these.

#1. First, edit blog post title, use <br/> tag

image.png.93bde4b92ca0a5e4de152158287e5d77.png

we will have

image.png.43dc516ee5c695dd2718fcfe8757eb20.png

#2. Use this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("h1.blog-title a, div.blog-item-title h1, a.summary-title-link, h2.item-pagination-title").each(function(){
    $(this).html($(this).text());
  });
});
</script>

image.png.081c40f834ec3c154bfd15feb82be021.png

Result

image.png.26a0d58ac4779f04d5651a7adaf84da1.png

#3. <br/> tag will appear in browser address bar.

image.png.2ddcd9716190af154414294066b32bf9.png

You can click on blog item > Settings

image.thumb.png.3c58fea02e9ca641b0217719ae787f76.png

Click SEO > Enter new blog item title in SEO Title

image.png.25d8573efb278fa962de92f0b4dbdae4.png

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!)

  • Replies 0
  • Views 261
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.