Support » Themes and Templates » hiding description/title

  • i know it has been asked b4 but i don’t see the title-or description for my theme in the css style sheet. i want to make the title an description hide.
    the header php has this
    <title><?php bloginfo('name'); wp_title(); ?></title>

    amd

    <div id="header" >
    <h1><a>"><?php bloginfo('name'); ?></a></h1>
    <p><strong><?php bloginfo('description'); ?></strong></p>
    </div>

    ———————————
    the header section in the style sheet

    /* Header */
    #header {position: absolute; margin:0 0 0 40px; width:350px; left: 50%; text-align: right;}
    #header h1 {background-color:inherit; color:#555; font-size:2em; letter-spacing:-1px; margin:30px 30px 0 0;}
    #header h1 a {background-color:inherit; color:#555; text-decoration:none;}
    #header p {background-color:inherit; color:#777; font-size:1.1em; font-weight:bold; line-height:1.3em; margin:10px 30px 0 0;}
    #frontphoto {margin:0 0 10px;}

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think you are confused, or maybe I’m confused.

    Site Title in Head
    In the <head> section of your theme header, the <title></title> tags are for the website title, not a post or page title. If you want to hide the title of the website, do one of two things:

    1.) edit Settings=>General – Delete the title of your site (and tagline too?)
    2.) delete the code that pulls in the site title from between the tags.

    Bog Name in Site Body
    Use css to make it disappear:

    #header h1{display: none;} /* Hides h1 title */
    #header p{display: none;} /*Hides all paragraph <p> text */

    Hiding all paragraph text may not be the best solution for you. In this case, edit your theme’s header.php file (assumes where your posted code comes from). Add a css class to it:

    <p class="hiddenTagline"><strong><?php bloginfo('description'); ?></strong></p>

    …then use css to hide it.

    thanks. i did the first part without adding the class and so far it looks alright ):

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘hiding description/title’ is closed to new replies.