Site logo

Archived topic

My header background image for my homepage is not showing up on mobile

7 replies · Started by Alexander on August 10, 2021

Viewing posts 1–8 of 8

Hi,

my header background image is not showing up on mobile.
and….
during testing... if i select a Background color for Header… nothing happen…but if i use a Bg Color for Body… the header have a Background Color..
Whats wrong?

Alex

Hi there,

you would need to disable the Mobile Header option in Customizer > Layout > Header.

Hi, but i want to use mobile header.

That will require some CSS like this:

#mobile-header {
    background-image: url('https://www.reiseprofi.com/wp-content/bilder/site_bg.jpg');
    background-repeat: repeat-x;
    background-size: cover;
}

Hi,
thanks it works.

But.... still dont understand why extra css.

Is @media for css mobile-header necessary?
Thanks David.

Media query is not required here as #mobile-header only shows on mobile already.

You can add the mobile-only media query @media (max-width: 768px) { as well but it wouldn't make a difference.

Thanks

No problem :)

This archived topic is closed to new replies.