• Resolved veritasredux

    (@veritasredux)


    Hello.

    I have recently started a wordpress blog at https://www.VeritasRedux.com. I have edited the default theme to create my own. The header image is my own. However, if you will notice, when you drag the mouse over the image and highlite the invisible white font text, you will notice that the blog name and description are placed (in white font) on top of the image. I wish to remove this (because the image contains the name and description). What file is this command contained in so that I can delete this command?

    Thanks,
    Evan May

Viewing 8 replies - 1 through 8 (of 8 total)
  • moshu

    (@moshu)

    admin panel > Options > General

    Or in your style sheet, h1 <display:none>

    Thread Starter veritasredux

    (@veritasredux)

    Thanks guys.

    Evan May.

    dss

    (@dss)

    and remember: when creating headings in your posts, use h2 and h3 now, don’t use h1 because it won’t show up.

    mylagoon

    (@mylagoon)

    No offence to the other option presented here by other users, but surely you don’t want to limit your use of H1? More importantly, surely you want your blog to have a title displayed in the browser window/tab, on your RSS feed, etc…? Because you just removed it.

    My suggestion. Reverse what you just did. Goto admin panel > Options > General, and put the blogs name and decription back in the right boxes. Then revery your CSS (ie. delete <display:none>).

    Then open header.php in the default themes folder, located in wpcontent/themes/default, scroll down towards the end of that file until you see this code (minus all the spaces I included so it would showup):

    < div id=”header” >
    < div id=”headerimg” >
    < h1 >< a h ref=”< ?php echo get_settings(‘home’); ? >” >< ?php bloginfo(‘name’); ? >< /a >< /h1 >
    <div class=”description”><?php bloginfo(‘description’); ?></div>
    </div>

    Delete:
    < h1 >< a h ref=”< ?php echo get_settings(‘home’); ? >” >< ?php bloginfo(‘name’); ? >< /a >< /h1 >

    Delete:
    <?php bloginfo(‘description’); ?>

    Save, and now you’re on your way. Or, if you’re happy with what you’ve got, keep that.

    dss

    (@dss)

    Actually when you adjust the css code to display:none for H1 it does show up in the RSS feed, just not on the blog. The RSS feed doesn’t use your CSS document to display its content.

    Example:

    web: https://fernando.dubtribe.com/
    feed:https://fernando.dubtribe.com/feed/

    You’ll notice that I have hand removed the description from both (because i didn’t want them) but the principle is the same.

    mylagoon

    (@mylagoon)

    Agreed, except this person has removed his/her blog title altogether to fix the problem, rather than going with the CSS solution it would seem.

    You have done, except with a different theme but same principal it would seem, what I have suggested no?

    my lagoon, your suggestion delete’s the heading also. Where else are you using h1 on your site? I’m not an expert in the area, but from my readings, you really only want to use the h1 on the title. And by using the display:none, spiders can still read the title, but viewers can not see it.
    And all you would have to do is specify #header h1 {display:none} if you were to want to use h1 in other areas of the site and not display the title in the header.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to delate blog name in Theme Header’ is closed to new replies.