soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
315 stars 30 forks source link

Can't use 2 differents image ACF Field (w/ URL Return format) with Oxygen Repeater (for responsive purpose Desktop /<768px) #1112

Open runechronos opened 4 years ago

runechronos commented 4 years ago

Describe the bug I can't switch between an ACF Image field image and "a static image or another ACF Image field" in a responsive scenario, Desktop/ < 768px, the same image as defined on the desktop is still shown on screen no matter what.

Have you tried all the steps at https://oxygenbuilder.com/documentation/troubleshooting/troubleshooting-guide/? Yes

Are you able to replicate the issue on a Sandbox install at https://oxygenbuilder.com/try? Yes, I reproduce the same bug https://oxygen-qf7dtm3348a9k.oxygen-demo.qsandbox.me/sample-page/

To Reproduce Steps to reproduce the behavior:

  1. Go to https://oxygen-qf7dtm3348a9k.oxygen-demo.qsandbox.me/sample-page/
  2. Look at the image shown in the background of the div at desktop size
  3. Put your explorer with a size inferior to < 768px (for example with chrome inspector any smartphone preset)
  4. See error -> The image did not change

Expected behavior The image is supposed to change when my screen size goes under 768px, with the "image2" defined on my custom-field (activities with "image1" and "image2")

What actually happens The image remains the same at any screen size

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Detailed explanation in case (It's a more complicated scenario than in this thread: https://github.com/soflyy/oxygen-bugs-and-features/issues/480)

I have an ACF image field with a return format: image URL. Then in the oxygen builder I created a repeater with a

with a dynamic background filled with the ACF image field I created, so far it works I can see my img on the webpage. The problem begins here: I want to show another image when the @media <768px is triggered, so I tried to add and change the background value with another ACF Image Field or even another fixed img directly from the media and it's not working I still have the original image shown on screen.

-> So it's not working when trying to switch between ACF image/static img from media library, nor between ACF image/ACF image.

Riyad95 commented 4 years ago

still is an issue with 3.4 This is not only in repeaters, make a section and try to give it 2 acf backgrounds at 2 different breakpoints and see the issue in action.

Josh-PCD commented 3 years ago

Still an issue with 3.8. If dynamic data is used, it will ignore all other breakpoint image changes. Tried with image element and background image on sections and divs.