ACF custom Fields
Hi,
I created several ACF fields and it works great on the front end, But on my design I have 3 buttons and sometimes I can only fill 2 ACF buttons text.

How can I prevent the 3rd to show empty? Isn't there an option to show an element only if its Custom field is existent?
-
Hi Jean-Pierre,
Thank you for contacting us.
At the moment, Brizy doesn't have a built-in option to automatically hide an element when its dynamic content (like ACF fields) is missing. This is a known limitation, and it has been requested by other users in the past. While it's on our radar, we don't yet have an ETA for when this feature will be available.
In the meantime, we might be able to help by creating a short script that hides those empty elements on the front end. If you're open to it, please share temporary access to your WordPress admin so we can take a closer look at how your dynamic elements are set up and assist you further. Please add us as an Admin user to your WordPress Dashboard and send the following details to communitysupport@brizy.io.
Community Post link: https://support.brizy.io/hc/en-us/community/posts/27278942247058
WordPress Admin URL:
Username:
Password:Looking forward to your reply.
Best regards,
Ariel H.0 -
Hi Jean-Pierre,
Thank you for your cooperation.
We’ve added the script to your dynamic template. Could you please test it by adding some more content to check if everything is working properly?

I’ve also prepared a short screencast showing how the script was embedded in the template, so you can review it if needed.
Screencast: https://youtu.be/y4lwQXsr6AkThe script block is hidden on desktop, tablet, and mobile views, so it won’t create any gaps on the page. You can use the Eye icon next to the update button to display hidden elements.
Please try this and let me know how it goes.
Best regards,
Ariel H.0 -
Thanks a lot Ariel, It's perfect. Will Brizy add this code by default? It would be nice to have in the builder
0 -
Hi Jean-Pierre,
It should be fixed in one of the upcoming future updates.
Kind regards,
Ariel H.0 -
Awesome, thank you Ariel
0 -
Hi Ariel, Just a quick follow up,
It's perfect for the image and button placeholders but I just found out that it also removed my social links icons when they are dynamically populated. They should be hidden only if there is no link added. Is there a way to fiw the code? I tried with AI but with no succes.
0 -
Hi Jean-Pierre,
Could you please provide us access to your site again and let us know where the social links are located so we can take a closer look?
Best regards,
Ariel H.0 -
I sent a temporary login to support@brizy.io
0
Please sign in to leave a comment.
Comments
8 comments