How to use Customize conditions to hide show image

Hi, I’m wanting to use Customize conditions to hide show an image. I know how to hide/show a Featured Image (that is shown as an option under conditions).

What I want to do is to hide the image in a Global Block when there is no image assigned. Is this possible?

Hello Paul,

Thanks for reaching out.

Are you using ACF or a custom field for the image? You can use the post meta with Is/IsNot condition.

If this is NOT helping, provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
- Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

Best Regards.

Hi @ruenel, thanks for your reply. Can you please give me a bit more info.

Yes, I’m using ACF.

Which post meta should I use?

{{dc:post:meta key=“testimonial_image”}
or
{{dc:acf:post_field field=“testimonial_image”}}

I couldn’t get it to work for either.

Hello Paul,

To better assist you with your issue, kindly provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
- Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

Thanks.

Hi @ruenel, I’ve provided access in the secure note. The issue is shown on https://foundationdesign.co.nz/testimonial/packaging-design-kokowai-honey/

I need the Global Block to work on my Client Testimonials page https://foundationdesign.co.nz/client-testimonials/

Thank you.

Hello Paul,

You can just leave it empty and do not use Null.

Best Regards.

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