Support » Fixing WordPress » Adding a subtitle to my homepage header

  • belenenses

    (@belenenses)


    Hi Guys,

    This is my first day with WordPress and I’m trying to think of the equivalent with CuteHTML a year ago. Difficult to do, but WordPress doesn’t come over to me as being as simple to use design wise as it claims to be.

    I want to do something that would be really simple in HTML – add some text to my header – a subtitle. How to so it? The on-line tutorials show me how to add a photo, which i dont want to (but it would have to be a stock one anyway, not my own) but no reference to my simple query.

    If I mess around with the coding just to experiment, I cannot view it in a browser to see if my alterations are okay; and If i save my work and it’s wrong (which it was) I have a terrible time trying to rectify it rather than being able just to click a back-button and undo unwanted work. Will it get any better/easier? Or should I just return to adding static pages to my easy-to-use website and add a RSS feed?

    Your comments are welcome as too would be the coding resolution to my problem.

    Thanks,

    B.

Viewing 7 replies - 1 through 7 (of 7 total)
  • belenenses

    (@belenenses)

    Hi Guys,

    Still no reply on this presumably fairly simple issue. Can anyone help?

    Thanks.

    B.

    Technokinetics

    (@technokinetics)

    In the dashboard, on the Settings > General page you can change your blog’s tagline / subtitle.

    To display this in your header, add <p><?php bloginfo('description'); ?></p> to your header.php theme file.

    – Tim

    belenenses

    (@belenenses)

    Hi Tim,

    Thanks. The Settings rubric is very useful. Thanks for pointing it out!

    So I have now placed a subtitle where formerly there wasn’t one. However…I’d like to change the Font size on the main heading and cannot see how to do it. I tried changing the code from <h1> to <h2> but the result was to totally displace the text out of the header area amongst other problems.

    What to do and Where can I read up on this in layman’s language?

    Thanks,

    B.

    Technokinetics

    (@technokinetics)

    Font size is a styling issue, so should be controlled through your style.css theme file.

    If you’re new to CSS, then W3Schools may help.

    – Tim

    <p><?php bloginfo(‘description’); ?><p>

    Although this does add my tagline…it’s not adding it where I need it to be. I’m putting it after the blog title code but it’s showing above it. my site

    I took it off all together. But I still want it on, I just don’t know where exactly to put it in the header.php

    Thanks!

    Well, I actually figured this out on my own. It seems that that is actually possible when no one replies, lol.

    the above code needed: I had to add <h2 id=”description”> to get it to work and then put stuff in the styles for description.

    So it looks like this:

    <div id="header">
            			<h1 id="logo"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name') ?></a></h1><p><p><h2 id= "description"><?php bloginfo('description'); ?></p></p></h2>

    and in the stylesheet:

    #description {
    position: relative;
    top: 7px;
    left: 40px;
    font-size; 26px;
    font-family: Cambria, "Chapparral Pro", Georgia, "Times New Roman", serif;
    }

    of course you’ll have to tweek your fonts/sizes/top/etc…but this hopefully will help someone! Good luck. btw, I’m using the grunge floral theme.

    uhhhhh, forgot to write that that first block (above) goes in the header. the first part of the info is already in your header, i just included it to guide you to where you should look in the header.php

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding a subtitle to my homepage header’ is closed to new replies.