I have created a theme from the static website in wordpress. I want to know the right way to add javascript & style-sheet into the wordpress theme`s file. I have header.php, footer.php and index.php files and other css & javascript files that are linked in header.php.
Thank you in Advance.
Write following code into your theme's function.php file
if you want to add js and css in theme/front end than you cac add js and css in your
header.php
like this.For css
Loading the scripts correctly in WordPress is incredibly easy. Below is surely an example code which you would paste inside your plugins file or inside your theme’s functions.php file to properly Load scripts in WordPress.
for stylesheets