Title: Bug in theme &#8211; Function.php
Last modified: August 22, 2016

---

# Bug in theme – Function.php

 *  [mengues](https://wordpress.org/support/users/mengues/)
 * (@mengues)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/bug-in-theme-functionphp/)
 * Hi there,
 * The other day I tried to reset my password through FTP: went to my theme funtions.
   php, typed wp_set_password( ‘password’, 1 ) as per the instructions (changing
   the 2nd word password for my new password) and then save it and upload it but
   it didn’t work (I guess I was doing something wrong…), so I deleted the code,
   saved it and uploaded it.
 * The next day I found my password but just after I started working on the website,
   my web went blank! I can log in to wp-admin and make changes. Sometimes it starts
   working for a bit, but later on it gets blank again.
 * I’m guessing this is happening because of the changes I made on the funtions.
   php??
 * I’m new to wordpress and don’t know much about coding so I was wondering if anyone
   can see something wrong in my funtions.php:
 * <?php
    /** * Flatsome functions and definitions * * [@package](https://wordpress.org/support/users/package/)
   flatsome */
 * /**
 * It has been suggested to me to install the theme again and reset the functions
   but I’m worried all the work I’ve done in the web so far will be lost!
 * Also, would be better to edit the functions in wp-admin or FTP from now on?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/bug-in-theme-functionphp/#post-5342988)
 * > It has been suggested to me to install the theme again and reset the functions
   > but I’m worried all the work I’ve done in the web so far will be lost!
 * Re-installing your theme to fix its functions file will not have any effect on
   your site’s content, and WordPress should remember (in your database) the theme’s
   settings as you had them.
    note: Your site’s content is in your database and 
   your uploads folder, not in your theme.
 * > Also, would be better to edit the functions in wp-admin or FTP from now on?
 * I use SFTP (more secure than FTP) so I can use my own local editor and easily
   maintain local copies as I go along. However, the editor at your Dashboard might
   be fine as long as you copy-and-paste copies (backups) as you go. Never modify
   any file without first having a backup of whatever it was before you began.

Viewing 1 replies (of 1 total)

The topic ‘Bug in theme – Function.php’ is closed to new replies.

## Tags

 * [theme functions](https://wordpress.org/support/topic-tag/theme-functions/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/bug-in-theme-functionphp/#post-5342988)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
