• Resolved techfreak33

    (@techfreak33)


    I noticed the links on the top dashboard don’t work.
    I see the sidebar links work…
    How can I fix the top links?

Viewing 3 replies - 1 through 3 (of 3 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.

    How i fix it?

    function yolo_enqueue_parent_styles() {
    
    	wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css' );
    }
    
    add_action( 'wp_enqueue_scripts', 'yolo_enqueue_parent_styles', 9999 );
    • This reply was modified 5 years, 10 months ago by dimitris212.
    Plugin Author Thomas

    (@tlartaud)

    Hi,

    Glad you fixed it.

    If you need more and faster help, please, use our dedicated support forums where we have more tools to help you and where we are more active.

    See you soon our support forums.

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Links in Nav menu dashboard don’t work’ is closed to new replies.