Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Display or hide divs in an Element based on the value of an ACF true/false field

Home / Forums / Membership Forums / Display or hide divs in an Element based on the value of an ACF true/false field

This topic is: Resolved
[Resolved]
May 16, 2024 at 7:27 am

I have an ACF true/false field attached to posts in my Kadence child theme. There is also a Kadence Element which loads in place of the post header. There is a group block inside my element which I would like to appear if the acf toggle is set to true, but it should not load if it is set to false.

I’ve done something like this before in other themes, using conditional logic in a custom page template, but since Kadence doesn’t use page templates that way, I’m trying to work out how I would achieve it. Is it even possible with Kadence?

  • The forum ‘Membership Forums’ is closed to new topics and replies.