Wordpress theme linking style sheet

I followed one video tutorial to learn convert simple html template to wordpress ! Now I am not able to do one thing:-" linking the style sheet.

So far what I did:—
Making one child theme in the theme folder with name “business” with following files in it ( index.pho, footer.php, header.php, function.php , style.css) and I use this one to link the style sheet and add this below code in function.php file:-

<?php /**
* Proper way to enqueue scripts and styles
function wpdocs_business_scripts() {
wp_enqueue_style( 'main-style', get_stylesheet_uri() );
//wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true );
add_action( 'wp_enqueue_scripts', 'wpdocs__business_scripts' );


But it seems that it is not linked to the theme. How can I do this one / what is the proper method of doing this one.


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.