Hello,
I have been experimenting with dropping in snippets of code (as suggested on various websites) to my theme’s (GDF Modern child) functions.php in order to have the admin bar appear only to me as admin (currently all visitors to the site get to see the admin bar – none of my other wordpress sites display this behaviour) – none of them have been successful – anyway that’s not the pressing problem!
After trying the latest variation I was unable to to update the functions.php file, getting the error:
Parse error: syntax error, unexpected T_STRING in /home/[…]/wp-content/themes/geodir_gdf-modern/functions.php on line 94
Not a php expert, I can’t see the problem, as I have only been dropping in and removing snippets at the end of the file – currently I have removed the snippet but am getting the error, meaning that I can’t move away from the functions.php editor screen in the backend!
Here is the code that is currently at the end of the file, where there is apparently an error (I had been dropping in and removing snippets in the space before the error-reporting code at the end):
function gdf_modern_action_wrapper_open() {
if ( geodir_is_page(‘location’) || ( is_front_page() && get_option(‘geodir_set_as_home’) ) ) {
echo ‘<div id=”geodir_wrapper” class=”gdf-modern-home”>’;
} else {
echo ‘<div id=”geodir_wrapper”>’;
}
}
error_reporting(E_ERROR);
?>
Any ideas as to what the problem is?
Thanks