Sarah Moyer

WordPress Development for Web Agencies

  • Home
  • Work with Me
    • for Agencies
    • for Designers
    • for Business Owners
    • FAQs
    • Website Care
  • Portfolio
  • Blog
  • Contact

How to add HTML tags to WordPress Tagline

Last updated on March 31, 2018 · Posted in How To · dev process  · tagline  · wordpress

I can’t insert any HTML tags (such as break tags <br> or span tags <span>) into the WordPress Tagline.

add-html-tabs-in-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]

 

Was this post helpful?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comments Protected by WP-SpamShield Anti-Spam

Recommended Resources

Copyright © 2025 by Sarah Moyer · Privacy Policy