Hi Sergey,
I realized that I somehow missed your second response here! Of course, it’s been quite awhile now, but I see that the site you linked is currently still using Gillian, so I wanted to reply now that I’ve noticed!
As I explained previously, the functionality that you’re looking for with the header image is not compatible by default with Gillian because the header image in Gillian is a background image, intended to be placed behind the text that is the title/sub-title of your site. In this case, you’ve removed the text title (and header search bar), and you’d like to use a stand-alone banner image in this area instead.
Of course, this is doable, but it requires adjusting the code further because you want to make a more substantial change to how Gillian is intended to function. The best way to make changes like this to a theme is to use a child theme, so your changes won’t be overwritten when updating the theme.
Once you follow the instructions above and have created and activated your child theme, you’ll want to copy Gillian’s header.php file to your child theme folder. This is where we’re going to make the important change in setting up your banner image:
Delete the code from lines 46-66 (starting with <div class="header-bar">
and ending with </div> <!-- .header-bar -->
)
Replace those lines with the following:
<img class="header-image" alt="Header image for my site" src="YOUR IMG URL GOES HERE">
Of course, with the correct URL of your image in place of YOUR IMG URL GOES HERE.
Now you’ll want to go back to the style.css you created in your child theme and add the following lines of code:
.top-navigation {
margin-bottom: 0;
}
.bottom-navigation {
margin-top: -5px;
}
This will fix up the margins around the top and bottom of your image.
You should now have a stand-alone image that will re-size with your screen, and of course show the entire image on mobile.
You can also delete the code you added before in Additional CSS, as it is no longer relevant after these changes.
Very sorry once again for the confusion and the incredibly delayed response. I’m not sure how I lost track of this!
-
This reply was modified 6 years, 7 months ago by Alexa.