Asset Optimization issue with the Divi theme

Asset Optimization is not working if the Divi theme is enabled on the site. It displays the number of assets but after clicking on the “Got it!” button the page refreshes and displays the “Activate” button again.

  • Ash
    • WordPress Hacker

    Hello Angus Allan

    This is a known issue and already reported. The issue is with Divi theme and our developer have communicated with them. Divi will fix this on one of the next release, maybe on 3.20.3.

    If you want to manually fix it now, you need to modify the core code.

    File: wp-content/themes/Divi/includes/builder/core.php replace:

    Line 55:

    $is_bfb_edit_page = 'post.php' === $pagenow && $is_bfb_used;


    $is_edit_page_not_bfb = 'post.php' === $pagenow && !$is_bfb_used;


    Line 61:




    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.