WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can I add a Line Break to the TagLine? (7 posts)

  1. myinstinctwaswrong
    Member
    Posted 5 years ago #

    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.

  2. Doodlebee
    Member
    Posted 5 years ago #

    \n is the PHP linebreak.

  3. myinstinctwaswrong
    Member
    Posted 5 years ago #

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

    \n
    "\n"
    '\n'
    and with backticks

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

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    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.

  5. myinstinctwaswrong
    Member
    Posted 5 years ago #

    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.

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

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

  7. myinstinctwaswrong
    Member
    Posted 5 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags