How to replace Grey Header w/ an image

Discussion in 'RoadFighter WordPress Theme' started by sarahmiller212, Sep 5, 2013.

Thread Status:
Not open for further replies.
  1. sarahmiller212

    sarahmiller212 Member

    Joined:
    Mar 20, 2013
    Messages:
    43
    Likes Received:
    0
    Location:
    Raleigh, North Carolina USA
    I dislike the boring grey header on posts/pages. How can I change this to be an image instead?

    Thanks,
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    .header_container.not_home{
    background: url('Enter Your Image Address Here');
    }
     
  3. sarahmiller212

    sarahmiller212 Member

    Joined:
    Mar 20, 2013
    Messages:
    43
    Likes Received:
    0
    Location:
    Raleigh, North Carolina USA
    What is the best code to have a background image on the header stretch to full width?

    I would also like to have the dimensions for a full pixel image for the header area in case I want to generate my own.
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    .header_container.not_home{
    background-size:100% 100%;
    }
    This will solve your issue.
     
  5. mic619

    mic619 New Member

    Joined:
    Sep 5, 2013
    Messages:
    1
    Likes Received:
    0
    Gourav. I tried that solution as directed.

    It eliminated the default Grey graphic, but would not display my image with a proper URL.
    Any ideas?

    mic619
     
  6. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207

    Do let us know your website link.
     
  7. inbold

    inbold New Member

    Joined:
    Apr 24, 2013
    Messages:
    20
    Likes Received:
    0
    Having the same problem. It does not show the picture, only a white space.
    Can you help?

    My website is not up yet.
     
  8. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107

    Generally this issue occurs when the wrong URL address of image is entered in the background css code.

    Upload your background image in the media library panel of dashboard and copy the url of that image.
    for the reference see the image given below
    [​IMG]


    And then paste the url of image in the background css code as provided above by Gourav.
     
  9. dirkpfn

    dirkpfn New Member

    Joined:
    Nov 4, 2013
    Messages:
    16
    Likes Received:
    0
    Hi,

    excuses for stepping in here, but what would be the best picture size to fit the standard gray header ?

    Thanks
    DIRK
     
  10. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Grey header have not any fixed size for background image.
    I would recommend you to use a thin stip of background image it will repeat in the header background.
     
  11. inbold

    inbold New Member

    Joined:
    Apr 24, 2013
    Messages:
    20
    Likes Received:
    0
    Great explanation! It worked perfectly!
    Thanks a lot!
     
Thread Status:
Not open for further replies.

Share This Page