Unexpected $end in functions.php – Need help
-
I might be in serious trouble here. I try to add some sidebars in my functions.php file adding some code.
The original was:
<?php if ( function_exists('register_sidebars') ) register_sidebar(); function widget_mytheme_search() { ?> <li> <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <p><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" size="15" id="s" class="field" /></p> <p><input type="submit" id="searchsubmit" value="Søk" class="button" /></p> </form> </li> <?php } if ( function_exists('register_sidebar_widget') ) register_sidebar_widget(__('45 Degrees Search'), 'widget_mytheme_search'); ?>
Tried to add some sidebars using this code:
<?php if ( function_exists('register_sidebars') ) register_sidebar(); register_sidebar(‘2′); register_sidebar(‘3′); register_sidebar(‘4′); function widget_mytheme_search() { ?> <li> <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <p><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" size="15" id="s" class="field" /></p> <p><input type="submit" id="searchsubmit" value="Søk" class="button" /></p> </form> </li> <?php } if ( function_exists('register_sidebar_widget') ) register_sidebar_widget(__('45 Degrees Search'), 'widget_mytheme_search'); ?>
That one messed up everything and I’ve got this error:
Parse error: syntax error, unexpected $end in …../wp-content/themes/45degrees/functions.php on line 20
Ok, I replaced that one with the original to get rid of the error, but that error is still there. What shall I do? Need serious help here!
Andy
- The topic ‘Unexpected $end in functions.php – Need help’ is closed to new replies.