Hello,
i realized I had a problem with my full width header images on phone : there are not responsive at all.
check this : http://www.quatrepiliers.fr/centre-paris/tai-chi-qi-gong/
is there anything i can do?
thanks in advance,
veronique
update :
oh, would this be the answer :
Unfortunately that’s just the nature of background images – it has to do with the aspect ratio.
The ratio on a desktop is different than on mobile, but the image still has to fill the area, so certain part of it aren’t shown.
One solution is to create an image just for mobile, then apply it using some CSS:
@media (max-width: 768px) {
.blog .generate-content-header {
background-image: url( ‘URL TO YOUR MOBILE BACKGROUND IMAGE’ );
}
}
Adding CSS: https://generatepress.com/knowledgebase/adding-css/
https://generatepress.com/forums/topic/responsive-page-header/
or has something new came up in the meantime? as i’m using a different header image on each of the main pages ?
i shall have to do something like, work with the page id, is it not ?
@media (max-width: 768px) {
body.page-id-23 .generate-content-header {
background-image: url(“smaller image for mobile”);
}
}