Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

custom js css using wordpress hook

add_action('wp_enqueue_scripts','custom_script');
function custom_script()
{
	wp_enqueue_script('custom_script',get_template_directory_uri().'/js/custom.js');
}

add_action('wp_enqueue_scripts','custom_css');
function custom_css()
{
	wp_enqueue_style('style', get_template_directory_uri().'/css/custom.css');
}
 
PREVIOUS NEXT
Tagged: #custom #js #css #wordpress #hook
ADD COMMENT
Topic
Name
6+9 =