25% off ProSNIPC25OFF

Elementor: Disable Default Color Palettes

Prevents Elementor from injecting its built-in default color scheme so the site's own global colors remain the sole source of truth.

PHPby SnipCraft
php
<?php
/**
 * Disable Elementor's default color palette presets via an option filter.
 * Returns a truthy value so Elementor treats the "disable" flag as enabled,
 * without writing anything to the database.
 */
add_action( 'plugins_loaded', function() {
    if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
        return;
    }
    add_filter( 'pre_option_elementor_disable_color_schemes', function() {
        return '1';
    } );
} );
#branding#colors#design#elementor#performance