Unable to set background image for site header

  • Author
    Posts
  • #156268

    connect270533928
    Member
    Original poster

    Dear Thomas,

    You did ask me to paste URL of the image to set up site-header background, but it’s not working.

    I don’t know what seems to be the issue.

    Please advice

    The blog I need help with is: socialdesignlibrary.in

    #156319

    themezee
    Theme Author

    Hi again,

    Here is an example CSS snippet:

    .site-header {
        background: url( https://socialdesignlibrary.in/wp-content/uploads/2020/06/16.jpg );
    }

    You can copy the whole CSS code and insert it on Customize > CSS.

    Then the header area should display this image as background: https://socialdesignlibrary.in/wp-content/uploads/2020/06/16.jpg

    You can replace it with any other image uploaded in your media library. Hope that helps.

    Best,
    Thomas

    #156334

    connect270533928
    Member
    Original poster

    Hi Thomas,

    I was repeating the same command.
    Though an addition of ! important worked.

    .site-header {
    background: url( https://socialdesignlibrary.in/wp-content/uploads/2020/06/16.jpg ) ! important;
    }

    Thank you

    #156450

    themezee
    Theme Author

    Ah okay, glad to hear it works now with !important. Thanks for letting me know.

The topic ‘Unable to set background image for site header’ is closed to new replies.