Dear @damyan90 I have found another, and maybe the best , solution .
The main issue is that every user has different needs. So, this solution should be custom to solve your problem.
We will use the native WordPress Customizer the “Additional CSS” tab, and write some code (it is very easy and other theme authors suggest this way of editing the css files).
So if you want you can change the image of the header in smaller widths of screen. Follow the steps.
- Upload the image of your choice in the media library
- Click on that image and copy the URL on the right.
Then go to the customizer. Lets say that you need to change the image below 768px .
Lets assume that the image has this URL : https://placehold.it/768×450
Paste the following code directly to the customizer.
@media all and (max-width:768px){
.header-image-container{
background:url('https://placehold.it/768x400') center no-repeat !important;
height: 450px /* This is the height of your choice */
}
}
That way you can have different image per resolution because you can paste the above code as many times as you wish. For example:
@media all and (max-width:559px){
.header-image-container{
background:url('https://placehold.it/550x300') center no-repeat !important; /* Image URL from the media library */
height: 300px /* This is the height of your choice */
}
}
@media all and (min-width:560px) && (max-width:768px){
.header-image-container{
background:url('https://placehold.it/768x400') center no-repeat !important;
height: 450px /* This is the height of your choice */
}
}
I will make this ticket resolved because that really works and will work for you as well !
Cheers!
ArchimidisM