Title: messed up with function.php
Last modified: August 24, 2016

---

# messed up with function.php

 *  [ekaluk52003](https://wordpress.org/support/users/ekaluk52003/)
 * (@ekaluk52003)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-with-functionphp/)
 * Hi
 * I messed up with function.php with my Divi theme. When I log on to my blog [http://en-bike.com/intl/th/](http://en-bike.com/intl/th/)
 * The screen appeared as following code.
 * Parse error: syntax error, unexpected ‘Gallery’ (T_STRING) in /home/content/03/
   7388503/html/intl/th/wp-content/themes/Divi/epanel/post_thumbnails_divi.php on
   line 74
 * I cannot now access to [http://en-bike.com/intl/th/wp-admin](http://en-bike.com/intl/th/wp-admin)
   **
   I want to get back to my backend site again. Pls help!!! **

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

 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-with-functionphp/#post-6014908)
 * Whatever changes you made in functions.php, you’ll need to revert them.
 * Log into your site/server using FTP and download **functions.php**. Then undo/
   revert the last changes you made in it, save the file and upload it back.
 * If you edited **post_thumbnails_divi.php** as well, do the same for that file.
 * As added advice, never change theme files directly, but look into using a Child
   theme instead. That way it’s much easier to fix issues such as these.
 * [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
 *  Thread Starter [ekaluk52003](https://wordpress.org/support/users/ekaluk52003/)
 * (@ekaluk52003)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-with-functionphp/#post-6014912)
 * Hi Mark,
    Thanks a lot for your assistance. My problem is that I cannot log into
   my site (WP-Admin) meaning that I cannot revert my functions.php
 * Do I need to access to wordpress server ? Sorry I ‘m not sure what you mean by
   Log into your site/server using FTP ?
 * Thanks a lot,
    Ekaluk ( Mill )
 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-with-functionphp/#post-6014927)
 * Yes, you’ll need FTP access to the server, so you can download/upload the files
   from/to the server. You’ll need to download a file to your computer, edit it,
   and then upload it back to the server.
 * This is not the process of logging into your WordPress admin.
 * If you don’t know the FTP servername, user and password, your webhost should 
   be able to help you with that.
 *  Thread Starter [ekaluk52003](https://wordpress.org/support/users/ekaluk52003/)
 * (@ekaluk52003)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-with-functionphp/#post-6014931)
 * Hi mark , understand now. Thanks you so much. please have a nice day
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-with-functionphp/#post-6014933)
 * that is what the Codex says about FTP – [http://codex.wordpress.org/FTP_Clients](http://codex.wordpress.org/FTP_Clients)
 *  Thread Starter [ekaluk52003](https://wordpress.org/support/users/ekaluk52003/)
 * (@ekaluk52003)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-with-functionphp/#post-6015144)
 * Hi Everyone. Just want to share that I finally resolved an issue.
    I replaced
   the file “post_thumbnails_divi.php” by using the FileZilla. I feel so great now.
   Thank everyone.

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

The topic ‘messed up with function.php’ is closed to new replies.

## Tags

 * [function.php](https://wordpress.org/support/topic-tag/function-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [ekaluk52003](https://wordpress.org/support/users/ekaluk52003/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/messed-up-with-functionphp/#post-6015144)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
