Error in class-wp-hook.php
-
Hello,
First I’d like to inform you that I’m a complete wordpress and php beginner so my problem may seem easy to solve but I didn’t find the solution. I also want to notify you that I’m french so maybe you’ll find some mistakes.
I wanted to create my first WordPress theme by myself so I followed a tutorial.
It stated that to link bootstrap CSS and JS, I had to put this code in functions.phpfunction theme_fairywren_fromscratch_scripts() {
wp_deregister_script(‘jquery’ );
wp_enqueue_script(‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js’);
wp_enqueue_script(‘bootstrapjs’, ‘https://macxdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.js’, array(‘jquery’), false, false);
wp_enqueue_style(‘bootstrapcss’, ‘https://macxdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css’);
}add_action( ‘wp_enqueue_scripts’, ‘theme_fairywren_fromscratch’ );
But when I refresh my page (localhost/wordpress_fairywren), Wamp found this error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘theme_fairywren_fromscratch’ not found or invalid function name in C:\wamp64\www\wordpress_fairywren\wp-includes\class-wp-hook.php on line 298
What am I supposed to do? Maybe I need more PHP notions for this tutorial and I should follow an easier one?
Thanks for reading and replying ??
- The topic ‘Error in class-wp-hook.php’ is closed to new replies.