Line Break in Footer

I need to add a line break to the address line in the contact box on the footer. I tried to use
the same way I had in the footer credits, but it looks like html isn’t allowed in the address. Is there any fix for this?

Hi,

  1. Add [break] between your address line. For example:
   Address 1 [break] Address 2
  1. Save.

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($) {

     if( $('.footer-contact span').length ) {

       oldhtml = $('.footer-contact span').html();
       var newhtml = oldhtml.replace(/[break]/g, '<br />');
       $('.footer-contact span').html(newhtml);

     }

    })(jQuery);
  1. Update

I hope that helps.

Regards,
Kharis
aThemes Support

1 Like