Dynamic data not working with Background <img/> element's Position

Hi!

This is definitely a bug:

I have an ACF field where I pass the Background image position. For example, the output is 80% 50%.

{{dc:acf:post_field field="service_featured_image_position"}}

This works as expected if a background image position is set: the dynamic data is passed and the image moves left/right.

However, I want the <img/> element in the background, in which case 80% 50% would represent the object-fit rule. This works as expected if this data is entered manually, but it is unable to read dynamic content.

image

The same dynamic content works with the background image:

image

Thanks!

Hi @Misho,

Thanks for reaching out.
I have checked in my local environment and found the position is working fine with the img option for Background Layer. It will be very difficult to recognize the problem without investigating the settings. I would request you please provide login credentials for your site in a secure note to examine it, including:

– WordPress Site URL & Login URL
– Specific Page URL where you have added this
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.