Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter adenmantmea

    (@adenmantmea)

    Thank you, it seems to be working. My only request would be: is there a way this could be built in to the plugin so everyone could benefit?

    For those looking at this in the future, here is the code to remove the script and style files for guest visitors, added in my theme’s functions.php file. The number at the end is to force it towards the end of the stack to make sure it has been added before we try to remove it.

    /* Remove wicked folders scripts if not logged in */
    function wf_dequeue_files(){
        if(!is_user_logged_in()){
            wp_dequeue_script('wicked-folders-admin');
            wp_dequeue_script('wicked-folders-app');
            wp_dequeue_style('wicked-folders-admin');
        }
    }
    add_action( 'wp_enqueue_scripts', 'wf_dequeue_files', 2000 );
    Thread Starter adenmantmea

    (@adenmantmea)

    We are using Divi, and commenting out the code in Divi that applies the filters does make the sitemap work. I will try to follow up with them. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)