Site icon Puneet Sharma – Freelance Web Developer

Add custom scripts to custom wordpress template

WordPress

WordPress

Use this inside the template you want the files included to.
I will hook up the script to the template’s <head> section.

 function mypage_head() {
echo ‘<link rel=”stylesheet” type=”text/css” href=”‘.get_bloginfo(‘stylesheet_directory’).’/includes/mypage.css”>’.”n”;
 }
add_action(‘wp_head’, ‘mypage_head’);

Exit mobile version