How to insert a line break in a homepage subheading?

Hi there!

I just want to insert a single line break in the subheading on the home page. How can I make it?

link: https://www.babysleep.in/

Hello @Babysleep ,

Greetings from the Store Watchers Support Team! Happy to help you today.

Mostly, you can change it using the Theme Customize option.

Go to Online store → Click on Customize → Click on the Slide Show → On the right/left side setting menu will appear and you can change it from there.

Let me know if need further help.

Regards,

Store Watchers Support Team

1 Like

Hello! I can’t do it. I used the Enter key and even tried to do it with the space key, but that didn’t work for me

Hi @Babysleep

Please follow these steps:

  • Go to Online store > Themes > Edit code.

  • Since we don’t know where the homepage file is in your theme, add the following code to the end of the body tag (before ) of the theme.liquid file:


Or you can add it at the end of a file with the JS in the assets folder:

document.querySelector('[data-id="69a94159-98b3-44ce-82cf-063f9e7cecf2"] .sub-title').innerHTML = "Online Group Sleep Programs for Children 5 Months old to 6 Years old. 
 Next batch: 31 JANUARY 2023";

I hope that it will work for you.

1 Like