Site icon Hip-Hop Website Design and Development

function of parent not working in childtheme

I have a plugin used on a parent theme which uses shortcode. The plugin (shortcode) works on the parent theme but when I switch to child theme it no longer works. I’ve only added the child theme code in the child theme function… this is the only script currently in child function.

    function prpin_scripts_child_theme_scripts() {
    wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'prpin_scripts_child_theme_scripts' );

I thought functions like that are inherited from parent. Any advice?