• I see that elementor files are uploaded in “elementor” folder in the root of the bucket.

    This cause conflicts when using the same bucket for multi sites

    Css files are also not loaded in frontend pages

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same issue

    Please update

    Thread Starter luckysistemi

    (@luckysistemi)

    I propose this solution that fix the problem:

    file lib/classes/compatibility/elementor.php

    add this in module_init function:

    $root_dir = ud_get_stateless_media()->get('sm.root_dir');
    $this->base_path = strtok($root_dir, '%');

    modify this line in sync_rewrite_url:

    do_action('sm:sync::syncFile', $this->base_path.$name, $absolutePath);

    modify delete_elementor_files:

    do_action('sm:sync::deleteFiles', $this->base_path.'elementor/');

    modify one line in delete_css_files:

    do_action('sm:sync::deleteFile', $this->base_path.$name);

    modify one line in delete_global_css:

    do_action('sm:sync::deleteFile', $this->base_path.$name);

    this fix the problem and allow to work in multisite setup.
    I assume that the first part of the bucket path is common to all the sites.
    The best could be to add a new option to specify this path

    • This reply was modified 3 years, 11 months ago by luckysistemi.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘elementor CSS files path’ is closed to new replies.