Site logo

Archived topic

Can I use a different header background image on desktop and mobile?

9 replies · Started by Soren on December 21, 2021

Viewing posts 1–10 of 10

I am trying to add a different header background image on mobile than the one on desktop, but it seems that if I select the header section and switch to "mobile" on the toggle, then the desktop image gets replaced too. Is there a way to show a different image on mobile and desktop?
http://staging-deliciousdenverfoodtours.kinsta.cloud/

Aloha :)

Can the images defined in 'Advanced Backgrounds' be dynamic ... ie. featured images?

Would it be the same process? ie. add a static image from the media library, the override with the dynamic button displayed for the container widget?

Thanks :)

- Bill

Hi Bill,

Can the images defined in ‘Advanced Backgrounds’ be dynamic … ie. featured images?

If the container block is set to dynamic background, the image URL you've assigned to the "Advanced" settings will be overwritten by the dynamic image source.

The rest of the options would still apply though. Advanced gradient would apply as well. :)

Would it be the same process?

Very similar.

ie. add a static image from the media library, the override with the dynamic button displayed for the container widget?

Yes but be reminded that it only works on Block elements. There are no dynamic features for Container blocks on contents of pages.

Thanks Elvin :)

I set up a:

1) Block element, added a Container, and set the background to Dynamic/Featured Image, and

2) created three Advanced Backgrounds, dumbing the image sizes down from Desktop to Mobile

But I don't see the Advanced images being pulled when I resize my browser.

Dynamic Advanced settings

Any ideas?

I tried with and without the 'Use Fallback image' toggled on.

I want to pull the featured image dynamically, but with the sizes as defined in Advanced Backgrounds.

Possible?

Much Thanks!! Hope your weekend was great :)

- Bill

Ahhhh ... got it. Thank you both :)

Just to confirm ..

The image size for dynamic images can be controlled with the regular 'Backgrounds' settings, but not the 'Advanced'background size settings. Sound right? This has been my experience.

Size Images

Thanks for your solution :)

I actually built a single block element with three containers (each with a different sized background image), and use the Advanced 'Hide on ...' settings to control the visibility.

Does this seem an ok solution for you?

Having to built separate containers isn't ideal, but it does seem to work just fine :)

- Bill

.

The image size for dynamic images can be controlled with the regular ‘Backgrounds’ settings, but not the ‘Advanced’background size settings.

Yes, that's correct :)

Having to built separate containers isn’t ideal, but it does seem to work just fine 🙂

That's a smart workaround!

Thank you Ying! You all the best :)

You are welcome :)

This archived topic is closed to new replies.