WordPress.org

Ready to get started?Download WordPress

Forums

How to add header/logo image (9 posts)

  1. LKR
    Member
    Posted 1 year ago #

    Hi, guys.

    I've been trying to do this for about a day now and haven't had any success, so I've decided to head over here.

    The website I'm trying to change the text header to an image to is http://www.trueshowbiz.com

    Any idea how I can change the text into an image? Where should I change the code? Thanks!

  2. Kyle Numann
    Member
    Posted 1 year ago #

    One method is to use css to add a background image to the header, then hide the text. This is nice for SEO (still has searchable title) and you can set the height & width to match your image

    In your style.css file add this (or something similar)
    Change the width & height to dimensions of your image, and the 'images/header_logo.jpg' to the path for the image you want to use.

    #logo h1 a {
    text-indent:-9999px;
    width:300px;
    height:150px;
    background:url(images/header_logo.jpg) no-repeat 0 0;
    }

  3. LKR
    Member
    Posted 1 year ago #

    Thank you, I tried this, however it hasn't worked completely: the text hasn't been hidden and only part of the logo is visible.

    Any ideas how to get around this?

    Thank your for your time!

  4. LKR
    Member
    Posted 1 year ago #

    Also, does anyone know how to widen the sidebar? Thank you.

  5. LKR
    Member
    Posted 1 year ago #

    Can anyone help with these two issues? Thank you.

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Looks like you put that CSS code at the very top of your stylesheet -- it should go at the bottom. Further, you should not be editing theme files directly, but rather making changes in a child theme or using a Custom CSS plug-in. Otherwise your changes will be erased when the theme is updated.

    Also, where did you get that theme from? These forums only support themes from the theme repository here so you may need to look to the vendor or developer for more specific help with that theme.

  7. LKR
    Member
    Posted 1 year ago #

    Thanks, I tried it at the bottom, but still the same result.

    Oh right, I have tried using Firebug before to preview changes.

    I can't recall where I got the theme from now...no, I don't think it was from that list though.

    Thanks.

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    Your theme's PHP isn't released by the GPL license and therefore is not supported by WordPress' forums.

  9. LKR
    Member
    Posted 1 year ago #

    Ah okay.

    Where's the best place to get help aside from here?

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.