WordPress.org

Ready to get started?Download WordPress

Forums

Hiding the site title and tag line? (5 posts)

  1. martijnboersma
    Member
    Posted 3 years ago #

    Hi,

    I'm pretty new to WordPress, so apologies in advance for any n00bness.
    I'd like my site title and tag line to appear in the browser window, but don't want them to show up on my front page. I looked around in style.css and header.php but am not sure which part of the coding to remove.

    Any ideas?

    Cheers,
    Martijn.

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    according to the html code of your front page in the browser, you might already have destroyed some code in header.php.

    this is definitively not valid:
    <img src="http://www.martijnboersma.com/wp-content/uploads/2011/03/Siteheader2.jpg"</a>

    can you restore that code section, add a site title and description in the general settings, and report back?

  3. martijnboersma
    Member
    Posted 3 years ago #

    Hey,

    Thanks for your help so far.
    I've restored the code section and added a site title and description in the general settings. As you can see on the site 'Martijnboersma.com
    Ramblings, Rants and Random Thoughts' appears on the front page.

    So, the two questions:

    - How do I ensure the site title and tagline only appear in the browser window/tab and not on the frontpage?

    - Seeing the code I added to add the site header image wasn't valid (although the image did show up strangely enough), what is the proper way to do it?

    Again: apologies for my n00bness and thanks for your help so far.

    Cheers.
    M.

  4. alchymyth
    Forum Moderator
    Posted 3 years ago #

    - How do I ensure the site title and tagline only appear in the browser window/tab and not on the frontpage?

    some adjustments to style.css of your theme:

    #site-title, #site-description { text-indent: -9999px; }
    if you add this to the end of style.css, the title snd description should be off the screen.
    - alternatively, you can also try:
    #site-title, #site-description { visibility: hidden;; }
    or
    #site-title, #site-description { display: none; }

    Seeing the code I added to add the site header image wasn't valid (although the image did show up strangely enough), what is the proper way to do it?

    a possible valid code to show a header image, linked to the front page, would be:

    <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="http://www.martijnboersma.com/wp-content/uploads/2011/03/Siteheader2.jpg" alt="" /></a>

  5. martijnboersma
    Member
    Posted 3 years ago #

    Worked like a charm! Thanks so much for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic