How to add a function to functions.php?
-
Hello dear wordpressoholics,
I am stuck with a problem. I want to add the following code to my functions.php:add_action('wp_enqueue_scripts', 'mh_superfish'); function mh_superfish() { if(!is_admin()) wp_enqueue_script('superfish', template_url( 'js/superfish.js', __FILE__ ), array('jquery'), '1.4.8', TRUE); if(!is_admin()) wp_enqueue_script('superfish-args', template_url( 'js/superfish_args.js', __FILE__ ), array('jquery'), '1.4.8', TRUE); }But every time I try something, I always got a fatal error message. Please help! Thank you!
BR
Codex22
The topic ‘How to add a function to functions.php?’ is closed to new replies.