There are times, particularly for agencies that build websites for clients, when you may want to remove the “Generate with Elementor AI” option from the default editor.
We understand that you don’t want your clients to be distracted by prompts for premium features, such as an AI generator, especially if it’s not needed for their projects.
While there is an option to disable the Build with AI feature when creating sections in the Elementor editor, there is still no built-in way to remove the AI icons from the Element settings.

Moreover, with the recent update, the “Generate with Elementor AI” button also appears in the default WordPress editor, Gutenberg.

In this tutorial, we’ll guide you through the steps to remove these options without installing additional plugins. Let’s get started!
Removing Generate with Elementor AI from WordPress Editor
Incorporate a Custom Code
As is common in WordPress, when integrating a specific function without relying on third-party plugins, we will need to add custom code to our website.
Below is the code that will remove the Generate with Elementor AI links from the editor:
function wpp_remove_elementorai() { if ( \Elementor\Plugin::$instance->editor->is_edit_mode() ) { wp_dequeue_script( 'elementor-ai' ); wp_dequeue_script( 'elementor-ai-media-library' ); } wp_dequeue_script( 'elementor-ai-media-library' ); wp_dequeue_script( 'elementor-ai-gutenberg' ); } // Removing Elementor AI scripts from Elementor Editor add_action( 'elementor/editor/after_enqueue_scripts', 'wpp_remove_elementorai' ); // Removing Elementor AI scripts from WordPress Editor and Media Library add_action('admin_enqueue_scripts', 'wpp_remove_elementorai', 100);
The code above will remove the “Generate with Elementor AI” link from the WordPress default editor, as well as the Elementor AI icon from the Elementor editor.
If you only wish to remove the link from the WordPress editor or Elementor editor individually, you can simply comment out the corresponding action hook. To do this, add two slashes (//
) in front of the line to disable it.
// Removing Elementor AI scripts from Elementor Editor //add_action( 'elementor/editor/after_enqueue_scripts', 'wpp_remove_elementorai' );
Once your code is ready, it’s best to follow a safer approach when adding custom code. You can either include it in the functions.php file of your child theme or create a custom plugin to handle the modification.
Below is a screenshot showing where to place the code in the functions.php file of a child theme:

Checking for the Result
Now that you’ve implemented the code, you will notice that the Elementor AI link and icon have disappeared from the editor. The screenshot below demonstrates the before and after effect of applying the code:
On Gutenberg editor:


On Elementor Editor:


The Bottom Line
In this tutorial, you learned how to remove the “Generate with Elementor AI” option from both the Elementor editor and the default WordPress editor, Gutenberg.
While there was an option to disable the Build with AI feature in Elementor, this guide showed you how to fully remove it from the Element settings and WordPress editor without installing any additional plugins.