Slide Title: Add a line break

I would like the header to look like this

We care for you…
So you can care for your baby

Is there any way to add a line break so it looks consistent across all devices?

https://shopdashlin.com

Hello there,

Update your slide title with:

  We care for you... / So you can care for your baby

44

Then do the below steps:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    (function($){

      var slideTitle    = $('.main-slider .slider-item h1').text();
      var newSlideTitle = slideTitle.replace('/', '<br />');

      $('.main-slider .slider-item h1').html(newSlideTitle);

    })(jQuery);
  1. Update

Flush cache before reloading your site. Otherwise the code addition won’t take any effect on your web browser.

Regards,
Kharis

That worked perfectly!
Thank you for all your help.

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis