Hide section with javascript

We’re working on hiding a section with an alert when the ACF fields are empty, but seem to be able to unable to target the whole Cornerstone section. We tried putting an ID on it, but the ID is put inside of the sections, making it impossible to target. How can we go about it?

Website.

The white bar below the navigation needs to be removed when the acf fields are empty.

Hi Leapforce,

Thanks for reaching out.
I have checked your website and found the show_alert id is set in the section. You can use the Condition to check if the {{dc:acf:option_field field=“field_name”}} value is empty or not.

If you still want it to do with JavaScript and that ID is added when the ACF field is empty, then you can add a custom JavaScript code to hide that. Please remember that custom coding is beyond the scope of Theme Support, I would suggest you hire a developer who can assist you with the customization, or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support.

Thanks

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