Change Header to an Image in Rowling Theme

  • Unknown's avatar

    Hey guys,

    I have very little experience with CSS, so I’m looking for a little bit of help in trying to change the plain black header into an image that I have in my media library for the blog. The Rowling theme doesn’t have an option for a “Header Image,” so I was wondering if it’s possible to get around that using CSS. Thanks!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there, I took a peek in your media library and didn’t see an image that looks like it would be a header image. Can you give us a link to the image you are wanting to use and we can see what we can do to make that happen for you?

  • Unknown's avatar

    Here is the link to the image I’d like to use:

    Thanks!

  • Unknown's avatar

    Have a look at this. I had to move the image position down 15px otherwise you could not see the site description/tagline. To make it more visible, I added a black text shadow, increased the letter spacing a touch and also set it to bold.

    .header-wrapper {
        background-image: url("https://letmebfrankblog.files.wordpress.com/2016/08/pexels-photo-54567.jpeg");
        background-size: contain;
        background-position: center 15px;
    }
    .site-description {
        color: #fff;
        font-weight: bold;
        text-shadow: 2px 2px 1px #000;
        letter-spacing: 0.5px;
    }
  • Unknown's avatar

    Thank you so much for your help! The header looks great! For future reference, how did you know that the first line of CSS should be .header-wrapper and not .site-header or something else? Is that just something specific to this particular theme?

  • Unknown's avatar

    Super, and you are welcome. I used the web inspector built into my browser to find the relevant CSS, or CSS class/id selectors. If you are not familiar with the web inspector in your browser, take a look at our support page on How to Find Your Theme’s CSS where you will find some brief screencasts to get you started with it. I find it an invaluable tool when working with CSS.

  • Unknown's avatar

    That’s good to know, I will definitely check it out. Thanks you!

  • Unknown's avatar
  • The topic ‘Change Header to an Image in Rowling Theme’ is closed to new replies.