Forum Replies Created

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

    (@techfreak33)

    UPDATE: I found solution on cust area website: https://wp-customerarea.com/documentation/resolving-bootstrap-conflicts/

    Practically you need to edit the THEME FUNCTION PHP of your theme, or better, child theme.

    Quote from website:

    This conflict comes from Bootstrap javascript files loaded twice. To fix that conflict, you will need to either disable all Bootstrap JS loaded by your theme, or disable those loaded by WP Customer Area. The best practice for you would be to disable the Bootstrap loaded by your theme when we are displaying a WP Customer Area page. To do that, you need to browse the PHP files from your theme (start by looking into functions.php), and find where Bootstrap JS files are loaded. It should look like this:

    wp_enqueue_script(‘bootstrap-scripts’);
    Note that the name given to the styles or scripts can depend from your theme or plugin (bootstrap-scripts is just an example slug that your theme could use, you need to find the right one !).

    If you can’t find this by looking into the files, grab an advanced text editor (Notepad++ and so on ..) and perform a search in files action for the word wp_enqueue_script, then copy/paste the slug inside the quotes to the function shown below, in place of the example slug bootstrap-scripts.

    Once you have found this, add the following function to the bottom of your functions.php file (preferably inside a child theme):

    function fix_cuar_and_theme_bootstrap_conflict(){
        if (function_exists('cuar_is_customer_area_page')
            && (cuar_is_customer_area_page(get_queried_object_id())
                || cuar_is_customer_area_private_content(get_the_ID())))
        {
            wp_dequeue_script('bootstrap-scripts');
        }
    }
    add_action('wp_enqueue_scripts', 'fix_cuar_and_theme_bootstrap_conflict', 20);

    Do not forget to replace the slug bootstrap-scripts by the one you found in your theme or it won’t fix anything.

    • This reply was modified 5 years, 10 months ago by techfreak33.

    Hi try this: Maybe it works for you:
    In WP Admin, go to Elementor > Settings > Advanced tab > set “Switch Editor Loader Method” to “Enable”

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