WordPress.org

Ready to get started?Download WordPress

Forums

Image with no desciption as header (8 posts)

  1. flexapleaser
    Member
    Posted 9 years ago #

    I am trying to make my description not visible in the header but I think I need the description for search, etc. Can anyone tell me what I need to change?

    Thanks.

  2. Lorelle
    Member
    Posted 9 years ago #

    Is this the address of the site you are talking about?

    http://rockandrollgeek.podshow.com/

    I see no description in the header, just the title and the graphic. And what do you mean you need to change the description for the search. To what? Find?

    Or do you mean that you don't have a "title" set and so nothing appears at the top of the browser telling people what site and page they are visiting?

    You need to be a little more clear on what you are asking and then we can specifically address the issues you are having.

  3. flexapleaser
    Member
    Posted 9 years ago #

    I have no description because I want the image to be seen. I want to be able to have the name and description in the feed but not to show up on the header

  4. Kafkaesqui

    Posted 9 years ago #

    Place them in a div or span in your header, assign them a css class, and in your stylesheet give that class the following property:

    display: none;

  5. Root
    Member
    Posted 9 years ago #

    Display none for a text heading can sometimes put you in difficulty with search engines. I suggest either text indent or position absolute to put the heading way out of left field.

  6. flexapleaser
    Member
    Posted 9 years ago #

    I am somewhat of a newbie. Can you give me some instructions as to how to do this?

    thanks

  7. Lorelle
    Member
    Posted 9 years ago #

    In the header.php template file of the Theme you are using, look for <head profile="http://gmpg.org/xfn/11"> and below that type (check to see if it is already there in the section!!! Do not duplicate this if it is, but check to see that it is similar):

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    This will put a "title" on your site that is not visible on your page but is on the feeds and in the top of your browser when you visit the page and serves as the file name if someone saves your page. It puts the "name of the blog hypen title of post" there.

    To put the name of your blog in the header, but not have the text visible, in the same file look for <h1> and see what it says. If it is not there, which is what I remember, then put it there and type ONE of the following two examples:

    <h1>My Blog Name</h1>

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

    Now, in your style.css, do a search for "h1". In that style reference, you can add "display:none" and the title will be "there" for search engines and accessibility readers, but it won't show up on the screen.

    h1 { display:none;
    font-size: 4em;
    text-align: center;
    }

    You can leave the rest or get rid of it, depending upon how it displays on your site. But I'll leave that experimenting up to you.

  8. flexapleaser
    Member
    Posted 9 years ago #

    THANKS A MILLION!

Topic Closed

This topic has been closed to new replies.

About this Topic