WordPress.org

Ready to get started?Download WordPress

Forums

Replacing Text Title with Site Logo (7 posts)

  1. tunisie
    Member
    Posted 4 years ago #

    Hey guys!

    I just wanted to know how to remove the default title text (i.e. blog name and description) with a custom logo.

    http://xxlimg.com/images/75997671789321417993.png

    Here's my site link if you wanna have a better look :D

    Click Here

    Thanks,

    TuNiSiE

  2. figaro
    Member
    Posted 4 years ago #

    Here is your background image...you could open that in an image editor and add what you want in the header area.

    http://pc-demon.22web.net/wp-content/themes/pixel/images/bgbody.jpg

    To remove the title and tagline, find the following in style.css:

    #header #logo {
    float:left;
    margin:25px 0 0;
    padding:0;
    width:350px;
    }

    and add one line so it looks like this:

    #header #logo {
    float:left;
    margin:25px 0 0;
    padding:0;
    width:350px;
    display:none;
    }
  3. esmi
    Forum Moderator
    Posted 4 years ago #

    @figaro: The problem with the display:none approach is that it also hides the text from non-graphical user agents - including screen readers.

  4. tunisie
    Member
    Posted 4 years ago #

    Thanks for trying but both methods didn't work..

  5. figaro
    Member
    Posted 4 years ago #

    @esmi: wouldn't adding proper alt-text to the header image solve that problem?

    @tunisie: They have worked for me dozens of times...you may want to try again.

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    Providing it's not a background image applied via CSS, yes. Although I have a sneaky feeling (but no absolute proof) that Google weights plain text slightly higher than alt text - even within the same H tag.

  7. tunisie
    Member
    Posted 4 years ago #

    Nothing happened...

Topic Closed

This topic has been closed to new replies.

About this Topic