Support » Fixing WordPress » Can I add a Line Break to the TagLine?

  • Resolved myinstinctwaswrong


    My tagline is long and wraps when displayed. Is it possible to add a line break to it so I can control where it wraps?

    I tried using a
    html tag, but it displays as written instead of being interpreted as html. I also tried using whitespace, but that doesn’t work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • \n is the PHP linebreak.

    good idea, but I can’t get that to work either. Tried

    and with backticks

    embedded in the tagline. They all just display as written.

    Short answer: no, you can’t. Use a shorter tagline.

    Long answer: The tagline is used in more places than just on your site webpage. If you just want it broken on that page, then edit the theme’s header.php file and replace the <?php bloginfo('description'); ?> code with your tagline as you want it to be displayed there instead.

    ok, I can do the php edit without issue. Where else is the tagline used? Not that it matters, more of a curiosity.

    And thanks again for your help.

    All the feeds use it too, as the description tag.

    ok, thanks. I ended up shortening the tag line, and adding the rest back to the header file as static html as you suggested – worked like a champ!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can I add a Line Break to the TagLine?’ is closed to new replies.