Parse error: syntax error after playing with the php
-
Parse error: syntax error, unexpected ‘)’ in /home1/richcruc/public_html/wp-content/themes/agentpress/functions.php on line 124
I recieved the above error after trying to change the color on my agentpress theme and now I can’t access my site or the admin side. I have no idea how to fix it.
There are 4 different color stylesheets available with this theme: default.css, gray.css, red.css and tan.css – the default stylesheet is blue. To change the stylesheet that is loaded, all you have to do is enter the code below into your child theme’s functions.php file. Make sure you change gray.css to the appropriate color style of your choice.
PHP Code:
// Change color style sheet
add_filter(‘stylesheet_uri’, ‘child_stylesheet_uri’, 10, 2);
function child_stylesheet_uri($stylesheet, $dir) {
return $dir . ‘/gray.css’;
}The code above which you add should be placed anywhere after this:
PHP Code:
require_once(TEMPLATEPATH.’/lib/init.php’);
- The topic ‘Parse error: syntax error after playing with the php’ is closed to new replies.