WordPress.org

Ready to get started?Download WordPress

Forums

Blog Title and Slogan - Want to make disappear (13 posts)

  1. hmnikatz
    Member
    Posted 7 years ago #

    I made a custom header, so I do not want the blog title and slogan that I wrote in the wordpress set up to display on the header.

    However, I do want to keep it entered there so that the webpage has a title.

    What code, and where, do I need to put so that it hides the text from laying on top of my header?

    Thanks

  2. Christopher J. Hradil
    Member
    Posted 7 years ago #

    you just need to re-arrange/remove <?php bloginfo('name'); ?> and <?php bloginfo('description'); ?> from your theme's header.php file.

  3. GMonkey
    Member
    Posted 7 years ago #

    I was thinking of doing the same thing, but I was wondering wether this would in any way affect SEO or the way search engines see the site?

  4. Chris_K
    Member
    Posted 7 years ago #

    Leave the tags there, just edit your stylesheet to "display: none" for their class or id instead.

  5. reinard
    Member
    Posted 7 years ago #

    @HandySolo: Good idea: In which css? I tried in the theme folder, but there was no effect...

  6. Chris_K
    Member
    Posted 7 years ago #

    @reinard - could you share a link to your blog?

  7. reinard
    Member
    Posted 7 years ago #

    @chradil:

    This seems to work. But comment only this part:

    <div id=“header“>
    <div id=“headerimg“>
    <!-- <h1>/“><?php bloginfo('name'); ?></h1> -->
    <!-- <div class=“description“><?php bloginfo('description'); ?></div> -->
    </div>
    </div>

  8. reinard
    Member
    Posted 7 years ago #

    @HandySolo: It's for testing in the moment: http://www.hr-schmitz.de/wordpress_de

    Reinard Schmitz
    http://blog.hr-schmitz.de

  9. Chris_K
    Member
    Posted 7 years ago #

    @Reinard - right now nothing's there :-)

    Using your regular blog, as an example... Find this in the theme's stylesheet:

    h1, h1 a, h1 a:hover, h1 a:visited, #headerimg .description {
    	text-decoration: none;
    	color: white;
    	}

    Change it to:

    h1, h1 a, h1 a:hover, h1 a:visited, #headerimg .description {
    	text-decoration: none;
    	color: white;
            display: none;
    	}
  10. reinard
    Member
    Posted 7 years ago #

    @HandySolo : What do you mean with "@Reinard - right now nothing's there :-)". It is not very much, but what I wanted to check was "no letters in the picture"...

    Anyway, I will also check your proposal. Thanks.

  11. reinard
    Member
    Posted 7 years ago #

    @HandySolo: Mmmhhh... The "display: none;" had no effect... :-(

  12. Chris_K
    Member
    Posted 7 years ago #

    @reinard: When I first checked your link, it was at the WP "no database" screen.

    If you tried what I suggested, and are using the Default theme, be sure to clear the browser cache.

  13. reinard
    Member
    Posted 7 years ago #

    @HandySolo: curious - because the site was/is always online.

    I use "default_de" which schould be the same in css. And of course I cleaned the cache. I will try again.

Topic Closed

This topic has been closed to new replies.

About this Topic