Last updated on October 18, 2023

Elementor page not loading

Don’t know where to add this snippet? Read our guide: How to add code snippets.

Troubleshoot Elementor page loading problems.

If you are experiencing issues with Elementor pages not loading properly on your WordPress website, there are a few steps you can take to troubleshoot and resolve the problem. One common cause of this issue is a conflict with other plugins or the theme you are using. To identify and resolve the conflict, you can follow these steps:

  1. Disable other plugins: Temporarily deactivate all other plugins except for Elementor and see if the page loads correctly. If it does, then you can narrow down the conflicting plugin by reactivating them one by one until the issue reoccurs. Once you identify the conflicting plugin, you can either reach out to the plugin developer for support or consider finding an alternative plugin that doesn’t conflict with Elementor.

  2. Switch to a default theme: Temporarily switch to a default WordPress theme like Twenty Twenty-One and check if the page loads properly. If it does, then the issue might be with your current theme. You can reach out to the theme developer for assistance or consider using a different theme that is compatible with Elementor.

  3. Increase PHP memory limit: Sometimes, a low PHP memory limit can cause issues with Elementor loading. You can try increasing the PHP memory limit by adding the following code to your theme’s functions.php file:

/**
 * Increase PHP memory limit
 */
function wpsnippets_increase_memory_limit() {
    if ( ! defined( 'WP_MEMORY_LIMIT' ) ) {
        define( 'WP_MEMORY_LIMIT', '256M' );
    } elseif ( ! WP_MEMORY_LIMIT || ( strtolower( WP_MEMORY_LIMIT ) !== 'max' && intval( WP_MEMORY_LIMIT ) < 256 ) ) {
        define( 'WP_MEMORY_LIMIT', '256M' );
    }
}
add_action( 'init', 'wpsnippets_increase_memory_limit' );
  1. Clear Elementor cache: Elementor has its own cache system, and sometimes clearing the cache can resolve loading issues. In your WordPress dashboard, go to Elementor > Tools > General and click on the “Clear Cache” button.

By following these steps, you should be able to troubleshoot and resolve the issue of Elementor pages not loading properly on your WordPress website.

Examples

Example #1: Troubleshooting Elementor Page Not Loading

This use case demonstrates how to troubleshoot and fix the issue of an Elementor page not loading. The code example below shows how to disable conflicting plugins and themes using a custom PHP function.

function wpsnippets_disable_conflicting_plugins() {
    if (is_plugin_active('plugin-folder/plugin-file.php')) {
        deactivate_plugins('plugin-folder/plugin-file.php');
    }
}
add_action('init', 'wpsnippets_disable_conflicting_plugins');

The code above checks if a specific plugin is active and if so, deactivates it. This can help identify and resolve conflicts that may be causing the Elementor page not to load.

Example #2: Clearing Elementor Cache

In some cases, the Elementor page not loading issue can be resolved by clearing the Elementor cache. The code example below demonstrates how to programmatically clear the Elementor cache using a custom PHP function.

function wpsnippets_clear_elementor_cache() {
    if (class_exists('ElementorPlugin')) {
        ElementorPlugin::$instance->files_manager->clear_cache();
    }
}
add_action('init', 'wpsnippets_clear_elementor_cache');

The code above checks if the Elementor plugin is active and if so, clears the Elementor cache. This can help resolve any caching-related issues that may be causing the page not to load.

Example #3: Increasing PHP Memory Limit

Sometimes, the Elementor page not loading issue can be due to insufficient PHP memory limit. The code example below demonstrates how to increase the PHP memory limit using a custom PHP function.

function wpsnippets_increase_memory_limit() {
    $memory_limit = '256M';
    if (defined('WP_MEMORY_LIMIT')) {
        $current_limit = WP_MEMORY_LIMIT;
        if (wp_convert_hr_to_bytes($current_limit) < wp_convert_hr_to_bytes($memory_limit)) {
            @ini_set('memory_limit', $memory_limit);
        }
    }
}
add_action('init', 'wpsnippets_increase_memory_limit');

The code above checks the current PHP memory limit and increases it to a specified value if it is lower. This can help resolve memory-related issues that may be causing the Elementor page not to load.

Last updated on October 18, 2023. Originally posted on November 26, 2023.

Leave a Reply

Your email address will not be published. Required fields are marked *