Quantcast
Viewing all articles
Browse latest Browse all 8245

MBWD on "Error after editing functions.php that won't go away"

I'm using twenty twelve, and am attempting to enqueue jquery so that I can experiment with using functions on a test site. The error I'm running into has happened to me nearly every time I've played around with jquery.

I pasted the following code into functions.php:

add_action( 'wp_enqueue_script', 'load_jquery' );
function load_jquery(#slider) {
wp_enqueue_script( 'jquery' );
}

I realize that adding the function name #slider where I did was a mistake. But what happens next is that I get this error:

Parse error: syntax error, unexpected '(', expecting '&' or T_VARIABLE in /homepages/25/d123900814/htdocs/Sample3/wp-content/themes/twentytwelve/functions.php on line 82

and I could live with that if it wasn't for the fact that going back, erasing ALL the above code I pasted into functions.php, and updating the file does not remove the error message. And it breaks the whole site.

http://sample3.mahonebaywebdesign.com/

Why doesn't fixing the mistake in functions.php cause the error to be resolved?


Viewing all articles
Browse latest Browse all 8245

Trending Articles