1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Hide a Divi Module with Advanced Custom Field dynamic content when the value is empty

Discussion in 'Free Divi Community Forum' started by fmzz1976, Jan 9, 2022.

  1. fmzz1976

    fmzz1976 New Member

    Hi everyone!
    as in the title I would like to hide a Divi text module (in the Divi Theme Builder) with dynamic content (Advanced Custom Field Plugin). Any suggestion? Many thanks!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade promo bar / notification bar with close button for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    You may use Divi conditional option. See screenshot below:

    upload_2022-1-13_14-2-47.png
     
  3. Jens De Braekeleer

    Jens De Braekeleer New Member
    Divi Ultimate Child Theme

    I'm guessing it doesn't work with ACF, I've tried it but not working for me.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gradient text design for your Divi site without using any plugins:View Demo
  4. Pat

    Pat New Member

    Same problem to hide a button if the link on the button (using ACF) is empty.
    Divi conditional option doesn't work with ACF !
    Thanks if any idea.
     
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    I tried a simple condition where it displays only when my custom field dh_layout_number is 1. And it works.

    upload_2023-10-6_20-12-10.png

    The custom field name can be found as per below: dh_layout_number

    upload_2023-10-6_20-12-49.png
     
    Pat likes this.
    1. PRO MEMBER PERKS Divi Block Pro - Premade horizontal timeline design for your Divi site without using any plugins:View Demo
  6. Pat

    Pat New Member

    Thank you for your help.
    I think I understood but it didn't work for me as my field is a file and I want to test if it is empty or not.
     
  7. Pat

    Pat New Member

    I found the solution!
    First the translation of Simple Condition in French is terrible! Impossible to understand!
    Then finaly I could chose "Display only if Is any Value" (I suppose it is that in English) and it seems to work.
    Thanks for your help!
     
    Divi.Help likes this.
    1. PRO MEMBER PERKS Divi Block Pro - Premade logo carousel design for your Divi site without using any plugins:View Demo