Viewing 5 replies - 1 through 5 (of 5 total)
  • If you refer to the “big letter” blog name/title – the answer is you cannot.

    Create a class called something like “subheader” and put in the attributes you want it to have. Like this:
    #lowerheader {
    background: #c0c0c0;
    border-bottom: double 3px #000;
    border-left: solid 1px #000;
    border-right: solid 1px #000;
    border-top: solid 1px #000;
    text-align: center;
    font: italic normal 75% 'Times New Roman', Times, serif;
    letter-spacing: 0.1em;
    padding: 15px 60px 15px 60px;
    margin-left: 13em;
    margin-top: 0;
    margin-right: 13em;
    }

    Then after your header in your main template page, put in the text.

    <h2 id="lowerheader"><?php bloginfo('description'); ?></h2>

    Will return your tagline as the text. Of course, you could also just put whatever text you want to include.

    <h2 id="lowerheader">Your Text Here</h2>

    Thread Starter zpirate

    (@zpirate)

    I tried the code and it worked, but differently than I had intended. Thanks for the good info though, I may need it in the future. How about this… Is it possible to set a maximum width on the Blog title so that if I have more text than the width it will wrap to the second line?

    Good question. I’d like to know that myself.

    What I gave came out of my stylesheet. If you change it so the spacing, colors, etc. match your “header” values in your stylesheet, you should get something very close to just adding a second line. (Unless you’re using a theme that puts graphics in the header, like the vaunted Kubrick. If that’s the case, you may have to play around with the background images to make them look decent.)

    You should be able to use the max-width property for whatever element contains your title. It’s not perfectly supported by all browsers though.

    Or you could just edit your theme’s header.php file directly, and just type in your title with <br/> tags as appropriate. It’s not as elegant as using bloginfo(), but it sure works.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘two lines of text in header’ is closed to new replies.