Title: Messed up the CSS function.php
Last modified: September 1, 2016

---

# Messed up the CSS function.php

 *  [meirongyu](https://wordpress.org/support/users/meirongyu/)
 * (@meirongyu)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/messed-up-the-css-functionphp/)
 * Hello, I was editing the CSS function.php and I think I made an error. Now when
   I try opening up my website (lailaiflorist.com) or log into my wp admin, the 
   page would say: Parse error: syntax error, unexpected ‘function’ (T_FUNCTION)
   in /home4/alicemungyu/public_html/wp-content/themes/sela/functions.php on line
   251
 * I downloaded FileZilla and looked into it but I don’t see anything wrong with
   it. Can someone please help me? Thank you so much!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/messed-up-the-css-functionphp/#post-7511974)
 * Using ftp or the file manager provided by your host, delete wp-content/themes/
   sela/functions.php. Download a fresh copy of your theme and then upload that 
   file.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 10 months ago](https://wordpress.org/support/topic/messed-up-the-css-functionphp/#post-7511975)
 * CSS is in styles.css, not in functions.php
 * download a clean copy of your theme from whereever you first got it and, via 
   ftp, upload the functions.php file to wp-content/themes/sela, replacing the one
   that’s mucked up.
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/messed-up-the-css-functionphp/#post-7511976)
 * Do the same with this file, CSS function.php
 *  Thread Starter [meirongyu](https://wordpress.org/support/users/meirongyu/)
 * (@meirongyu)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/messed-up-the-css-functionphp/#post-7511988)
 * Thanks for replying! Would I have to redo the site then?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 10 months ago](https://wordpress.org/support/topic/messed-up-the-css-functionphp/#post-7511994)
 * > Would I have to redo the site then?
 * If you modified those files, the mods will be gone if you upload fresh copies.
 * It’s best to work in a child theme and to make regular (and frequent) backups.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Messed up the CSS function.php’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/messed-up-the-css-functionphp/#post-7511994)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
