Goran Blog page header image CSS

  • Unknown's avatar

    For all my pages I use a featured image, and for the homepage I have selected a particular header image in customisation. However, I can’t work out how to have a featured/selected image on the BLOG/NEWS page (currently just a grey panel header). Ideally, I’d use the same image I have selected for my homepage.

    Does anyone know if it is possible? Thank you!

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

  • Unknown's avatar

    Hello there!

    This should do the trick:

    .blog #masthead {
    	background-image: url(https://defaultcustomheadersdata.files.wordpress.com/2016/07/blur.jpg?resize=1230,576);
    }

    Let me know if that doesn’t work!
    Sage

  • Unknown's avatar

    Hi sagebrownell – thanks so much! It worked as in it’s using the default custom header – but if you compare the homepage to the NEWS page, can you see that NEWS has a lot more blue space and less lights detail? ie the very top blob of light starts at a much lower point. Can anything be done about that? I know, I’m fussy … !

  • Unknown's avatar

    Hey there,

    That’s great to hear!

    Adding a line to the code above that specifies the background position should get the look you’re going for. You can replace the previous code with this:

    .blog #masthead {
    	background-image: url(https://defaultcustomheadersdata.files.wordpress.com/2016/07/blur.jpg?resize=1230,576);
    	background-position: 50% 50%;
    }

    Hope that helps,
    Sage

  • Unknown's avatar

    You star! Thanks so much Sage :)

  • Unknown's avatar

    Haha thanks ^_^ Glad it worked!

  • The topic ‘Goran Blog page header image CSS’ is closed to new replies.