Viewing 11 replies - 1 through 11 (of 11 total)
  • Edit the theme’s index.php

    Thread Starter zentaochi

    (@zentaochi)

    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

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

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

    Thread Starter zentaochi

    (@zentaochi)

    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

    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.

    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>

    Yes!! Adding the code to “.description” worked.

    Many thanks!

    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…

    My whole style sheet is trashed… argh

    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> -->

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘removing the title in the header’ is closed to new replies.