WordPress.org

Ready to get started?Download WordPress

Forums

removing the title in the header (12 posts)

  1. zentaochi
    Member
    Posted 8 years ago #

    my site title appears in the header as a link. is there a way to get rid of this whilst still keeping the title in the browser bar?
    the address is
    http://www.malawigold.com/wordpress/
    (still in layout stage, so ignore content)

  2. VaamYob
    Member
    Posted 8 years ago #

    Edit the theme's index.php

  3. zentaochi
    Member
    Posted 8 years ago #

    the only references i can find to the title is this:

    <div class="title" id="post-<?php the_ID(); ?>">
    " rel="bookmark">
    <?php the_title(); ?>

    i've tried removing it all but it still appears.
    i am a complete wordpress (and blogging) newbie

    thanks

  4. VaamYob
    Member
    Posted 8 years ago #

    that's the title of the post, not the title in the....
    sorry, you should look in header.php, not index.php

  5. FruitFly
    Member
    Posted 8 years ago #

    You're looking for <?php bloginfo('name'); ?> which appears to be wrapped in <h1 id="blogtitle"> in header.php on your theme. :)

  6. zentaochi
    Member
    Posted 8 years ago #

    i removed that and it's done the trick
    thanks a million.
    this board is really helpful with very quick replies.
    remember, a lot of us are real newbies at this.
    thanks again

  7. paulhager
    Member
    Posted 8 years ago #

    Nope, doesn't exist. There is no <h1 id="blogtitle"> in header.php. I'm using 1.5.2. Does that make a difference?

    In any case, this also doesn't answer my question which was where to put:

    h1 {
    position: absolute;
    font-size: 0;
    left: -1000px; }

    I tried putting it in "style.css" here:

    /* Begin Headers */
    h1 {
    padding-top: 70px;
    margin: 0;
    }

    by removing the last brace, thusly:

    h1 {
    padding-top: 70px;
    margin: 0;
    position: absolute;
    font-size: 0;
    left: -1000px; }

    The title, which is "Hoosier Gadfly" in large font centered on one line and "Biting commentary ...." centered in small font below WAS altered. The "Hoosier Gadfly" disappeared but "Biting commentary ..." remained centered but now at the top of the image.

    One thing I changed was the dimension of the image: it's now 326 x 740.

    Hopefully this should be enough information to indicate what I'm trying to do.

    Thanks.

  8. FruitFly
    Member
    Posted 8 years ago #

    Paul - the answer I gave was specifically for zentaochi's site, which I looked at and found the answer. It will be different for you, because you are using a different theme.

    The CSS method you're asking about is a way of hiding the header text - basically it moves it off the viewable screen.

    If you want to use that method, with the default theme, you'll need to move #headerimg h1 AND div.description to remove both the blog title and the description (which is what the second line is).

    You can also comment out the following two lines from header.php, which completely removes the blog title and description, rather than simply hiding them.

    <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div class="description"><?php bloginfo('description'); ?></div>

  9. paulhager
    Member
    Posted 8 years ago #

    Yes!! Adding the code to ".description" worked.

    Many thanks!

  10. kp2575
    Member
    Posted 8 years ago #

    I have no idea what you mean by comment over... I tried to do this I am using the basic kubrik layout... I totally screwed it up by removing the h1 info...

  11. kp2575
    Member
    Posted 8 years ago #

    My whole style sheet is trashed... argh

  12. FruitFly
    Member
    Posted 8 years ago #

    kp2575: There are two options, but I'd recommend commenting out the header.php rather than making changes to the style.css to hide it.

    To comment a section in HTML, you just need to enclose it in <!-- -->

    So in header.php you would find these lines:

    <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div class="description"><?php bloginfo('description'); ?></div>

    And put <!-- at the beginning, and --> at the end so it looks like this.

    <!-- <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div class="description"><?php bloginfo('description'); ?></div> -->

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.