I can’t insert any HTML tags (such as break tags <br> or span tags <span>) into the WordPress Tagline.
Here is a jQuery solution, add to themes/theme-name/global.js and call it in your theme stylesheet:
[codesyntax lang=”javascript”]
// Insert <br> into tagline jQuery(document).ready(function(){ $("h2").each(function() { var getContent=$(this).text(); var newString=getContent.replace('Poultry, Swine & Livestock Equipment Sales','<br />Poultry, Swine & Livestock Equipment Sales'); $(this).html(newString); }); });
[/codesyntax]
Leave a Reply