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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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="https://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?

    Thread Starter martijnboersma

    (@martijnboersma)

    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.

    – 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="https://www.martijnboersma.com/wp-content/uploads/2011/03/Siteheader2.jpg" alt="" /></a>

    Thread Starter martijnboersma

    (@martijnboersma)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hiding the site title and tag line?’ is closed to new replies.