0

When I add this to the end of my theme function.php I get a syntax error on the last line, how do I fix this?

add_action( 'admin_enqueue_scripts', function() {
    wp_enqueue_style('fontawesome', '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css');
}

2 Answers 2

1

The statement is incomplete. You never closed the add_action() function call:

add_action( 'admin_enqueue_scripts', function() {
    //...
}); // <--- Need to close the function call and end the statement with a semi-colon
Sign up to request clarification or add additional context in comments.

Comments

0

You are missing the closing bracket and semicolon (the ); part):

add_action('admin_enqueue_scripts', function() {
    wp_enqueue_style('fontawesome', '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css');
});

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.