How to Edit the functions.php File in WordPress. What is the functions.php File?The functions.php file is included with WordPress themes. It acts like a plugin allowing you to add or change features or functionality on your WordPress website. You can call built-in WordPress functions or write your own. It is very important to note that if you are editing your functions.php file you should be using a child theme because all your edits will be lost when you update your main theme. How to make a child theme.Should I Edit the functions.php File or Write a Plugin?You should use the functions.php file to add simple code that is related to how your content is displayed. You should write a plugin for more complex code that is not dependant on your theme. If you want the code to still work if you ever change the theme, put it in a plugin. If not, use the functions.php file.How to Edit the functions.php File.There are multiple ways to edit the functions.php file, I will show you 2 different ways. Directly through the WordPress backend and with FTP.How to Edit the functions.php File Directly in WordPress.Login to the admin area of the WordPress website.In the admin sidebar, go to Appearance > Theme Editor.Click on functions.php in the right sidebar. (Make sure you are editing the child theme.)Edit the file as needed.Save or Update the file.How to Edit the functions.php File via FTPYou will need to make an FTP connection to use this method. If you are unsure how to do this go here first: How to Create an FTP Account in cPanel. or How to Make an FTP Connection with FileZilla.Once you have an FTP connection:From the root directory of the website go to wp-content > themes > YOUR CHILD THEME.Locate the functions.php file.Right click on the functions.php file and select Edit.Edit the file as needed.Save the file.Select Yes if prompted.Close the file in the text editor if done editing. Additional Posts. WooCommerceHow to Edit WooCommerce Product Tabs.Read More WooCommerceWooCommerce Inventory and Stock Management.Read More WordPressHow to Make a WordPress Restaurant Website to Take Food Orders Online.Read More Leave a ReplyCancelYour email address will not be published. Required fields are marked * Save my name, email, and website in this browser for the next time I comment.