• 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 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)
  • 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.