Ajax by worpdress affects called jquery inside template file

This will not work:

function widget_data(){
    include get_template_directory() . '/inc/wid/card/widget-card.php';
    wp_die();
}

The include statment includes the “widget-card.php” only into the file and not the output stream. You have to redirect the output into a variable and then output the value via “echo”.

function widget_data(){

    ob_start();

    include get_template_directory() . '/inc/wid/card/widget-card.php';

    $output = ob_get_clean( );

    echo $output;

    wp_die();
}

Usefull link to output buffering:

What is output buffering? – StackOverflow