Sign Up

Browse


Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

WP Ask

WP Ask Logo WP Ask Logo

WP Ask Navigation

  • Home
  • Recent Questions
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Questions
    • Recent Questions
  • Communities
  • Polls
  • Home
  • Recent Questions
  • Contact Us
Home/ Questions/Q 1526
Answered

WP Ask Latest Questions

johnmarbz
  • 7
  • 7
johnmarbz
Asked: August 10, 20232023-08-10T10:21:40+08:00 2023-08-10T10:21:40+08:00In: Divi Theme

How to disable Divi AI?

  • 7
  • 7

Hey guys,

I’m new here!

I’m sure you’ve heard of the Divi AI feature just released. It’s awesome but sometimes, though, you might want to disable it for a few reasons.

Anybody here knows how to disable it completely?

TIA.

dividivi aipage builderthemewordpress
  • 4 4 Answers
  • 80 Views
  • 0 Followers
  • 0
  • Share
    Share
    • Share on Facebook
    • Share on Twitter

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

4 Answers

  • Voted
  • Oldest
  • Recent
  1. aldinlapinig
    Best Answer
    aldinlapinig
    2023-08-11T10:42:08+08:00Added an answer on August 11, 2023 at 10:42 am
    This answer was edited.

    You may use CSS to disable it. However, if you wish to disable Divi AI on both the frontend and backend, you may use the following code to be added to your “mu-plugin” folder.

    To implement your custom plugin as a Must Use plugin (mu-plugin) in WordPress, you need to follow these steps:

    • Access your WordPress files. You can do this using FTP or your hosting control panel’s file manager.
    • Navigate to the wp-content directory. If the mu-plugins directory does not exist, create one.
    • Create a new PHP file inside the mu-plugins directory. You can name it something related to your plugin, such as disable-divi-ai-function.php.
    • Paste your plugin code into this new PHP file and save it.

    Here is your code for reference:

    /*
    <?php
    /**
     * Plugin Name: Disable Divi AI
     * Plugin URI: https://aldinlapinig.com/
     * Description: Plugin to disable Divi AI on the frontend and backend.
     * Author: Aldin Lapinig
     * Author URI: https://aldinlapinig.com
     * Version: 1.0
     */
    
    function print_custom_css() {
        echo '<style>
        .et-fb-icon.et-fb-icon--divi-ai,
        button.et-fb-button.et-fb-button.et-fb-button--info.et-fb-ai-options-button,
        .et-fb-right-click-menu__item.et-fb-right-click-menu__item--generate_content_with_ai,
        .et-fb-settings-option-ai__button {
        display: none !important;
        }
        </style>';
    }
    
    /* Disable Divi AI on the frontend */
    function disable_ai() {
        print_custom_css();
    }
    add_action( 'wp_head', 'disable_ai' );
    
    /* Disable Divi AI on the backend */
    function disable_backend_ai() {
        print_custom_css();
    }
    add_action( 'admin_head', 'disable_backend_ai' );
    ?>
    */
    Let me know if this works.
    

      • 4
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
    • melissa
      melissa
      2023-08-13T12:35:50+08:00Replied to answer on August 13, 2023 at 12:35 pm

      aldinlapinig

      You’re awesome! Your solution worked like a charm. It’s people like you that make this community so great. Keep on being the rockstar that you are!

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    • margoo
      margoo
      2023-08-16T15:12:00+08:00Replied to answer on August 16, 2023 at 3:12 pm

      Awesome stuff aldinlapinig! Thanks for sharing

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    • ej8colz
      ej8colz
      2023-08-16T15:12:01+08:00Replied to answer on August 16, 2023 at 3:12 pm

      Been looking for this solution everywhere. Even from ET support and they could not even provide this code for us looking for this quick solution. 🙁 Thanks for sharing this. Worked for me.

        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

Sidebar

Most Popular Theme

aalan

Blazing Fast Cloud Hosting

aalan

Explore

  • Home
  • Questions
    • Recent Questions
  • Communities
  • Polls

© 2024 WP Ask. All Rights Reserved.
Powered by Ako.ph.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.