• When I am modifying the function.php file in the background, I will always report an error, which prevents me from modifying the code

    How can I solve this problem

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is a folder and file permissions issue (depends on server settings). The best way to edit files is to use FTP clients (FileZilla, Notepad++).
    Try adding the following code to your root wp-config.php file (AT THE END OF THE FILE!):

    if(is_admin()) {
    	add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
    	define( 'FS_CHMOD_DIR', 0751 );
    }
    Thread Starter CelieHair

    (@a3360765)

    @maksymyushytsyn

    Hello

    But two days ago, I could still change it, but suddenly it didn’t work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing the functions.php file does not take effect’ is closed to new replies.