The MU forums have moved to WordPress.org

Removing Blogtitle and Tagline from main page (8 posts)

  1. Mytob
    Member
    Posted 14 years ago #

    How do you remove the blog title and tag line from the front page of the site without removing it from the page title? I'm having a custom graphic for the page title so the text is not required but the image as a link back to the main page would be desirable. Im having a little problem finding the code for it =). I'm assuming in doing this it will not remove it for all other users?

  2. suleiman
    Member
    Posted 14 years ago #

    1) edit the CSS and make the h1 tag display:none, then throw in your image into the homepage. It'll be in header.php most likely.

  3. Mytob
    Member
    Posted 14 years ago #

    Can you be a little me clear on what part. Iv had a look throught style.css and cant work out which bit to edit.

  4. llamaman
    Member
    Posted 14 years ago #

    Suleiman's suggestion will work, but my preference is to edit the header.php file as so:

    Comment out:
    <?php bloginfo('name'); ?>
    <?php bloginfo('description'); ?>

    So the result will be something like this:

    /*
    <?php bloginfo('name'); ?>
    <?php bloginfo('description'); ?>
    */

  5. suleiman
    Member
    Posted 14 years ago #

    llamaman's suggestion is better, since ultimately you would need to edit header.php to stick an image in there anyways.

  6. Mytob
    Member
    Posted 14 years ago #

    Thanks for the info il give it a go now!

  7. mrhenry
    Member
    Posted 14 years ago #

    To comment out html you need to use <!-- and -->

    so the result should be like this:
    <!--
    <?php bloginfo('name'); ?>
    <?php bloginfo('description'); ?>
    -->

    Or if you want to comment out the php then it should be like this:

    <?php //bloginfo('name'); ?>
    <?php //bloginfo('description'); ?>

  8. andrea_r
    Moderator
    Posted 14 years ago #

    You may also want to look up Themes and the tweaking thereof in the codex. This is not MU-specific, but basic WP skills. :)

About this Topic