Title: Theme Functions (functions.php) code messup
Last modified: August 19, 2016

---

# Theme Functions (functions.php) code messup

 *  [roxworx](https://wordpress.org/support/users/roxworx/)
 * (@roxworx)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/theme-functions-functionsphp-code-messup/)
 * While trying to install a plugin that shows random images ([http://meandmymac.net/plugins/randimage/](http://meandmymac.net/plugins/randimage/)),
   I accidentally changed something in line 2 of the WordPress Default template,
   Theme Functions (functions.php).
 * RandImage asks that the users to “insert this code in your theme”:
    <?php randimage_sidebar();?
   >
 * I guessed (wrongly?) that this meant that I should add the code to the Theme 
   Functions (functions.php) code. I did so, in line 2, but it didn’t work. So I
   tried removing the < and > and fiddled a bit back and forth with this, and now
   all I get is this error message:
 * Parse error: syntax error, unexpected ‘<‘ in /customers/lc-norway.com/lc-norway.
   com/httpd.www/wp-content/themes/default/functions.php on line 2
 * Unfortunately, I can no longer access the functions.php page to correct the error.
   I guess I’ll need to upload the unaltered original file to the webserver and 
   try again.
 * But – where exactly SHOULD the RandImage code <?php randimage_sidebar(); ?> be
   placed? Did I choose the wrong file to put it in? Or did I choose the right file
   but add the code at the wrong place?

The topic ‘Theme Functions (functions.php) code messup’ is closed to new replies.

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 0 replies
 * 1 participant
 * Last reply from: [roxworx](https://wordpress.org/support/users/roxworx/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/theme-functions-functionsphp-code-messup/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
