Where is the functions.php file in WordPress?

Where Is Functions PHP In WordPress?

In my post, I show you how to access and functions.PHP in WordPress, step by step.

Functions.php is in your website theme folder.

There are three ways to access functions.php, through your WordPress admin, a hosting Control Panel, or an FTP client.

Let’s begin.

Functions PHP In WordPress Admin

Before making changes to Functions PHP, I recommend backing up your website.

Making edits to theme files can crash your website.

To access Functions PHP in WordPress, hover your mouse over Appearance and click Theme Editor.

Select theme editor from the menu

Select Theme Functions (functions.php).

Functions PHP file

Add your code to the file, and click Update File.

Update file to actions edits

Once updated, you get a confirmation message.

Update file confirmation message

After saving your updates, go to your website to ensure everything is working.

Functions PHP In Hosting Control Panel

On your Cpanel dashboard, click the File Manager icon.

Select file manager

Next, open the public_html folder.

Open public_html

Open the wp-content folder.

Open wp-content

Open the themes folder.

Open themes

Next, select your active theme folder.

Open your current active theme folder

Functions PHP file is in your theme’s folder.

I recommend making a copy before editing.

Functions PHP file

To make a copy, right-click and select Download.

Save a copy to your computer.

Right click to download or edit

To add code, right-click and select Edit.

Right click to download or edit

A warning asks you to make a copy before editing. To continue, select Edit.

Select edit to continue

Make your edits and click Save changes.

Save changes

After updating, go to your website to ensure everything is accessible.

Functions PHP In An FTP Client

For this tutorial, I am using the Filezilla FTP client.

Visit my How To Install Filezilla Guide article to learn how to download and install Filezilla.

After connecting to your website via Filezilla, your website files are on the right, and your computer files are on the left.

On the right, open the public_html folder.

Open puiblic_html

Open the wp-content folder.

Open wp-content

Open the themes folder.

Open themes

In the themes folder, select your active theme.

Open your current theme folder

I recommend making a copy before editing.

Functions PHP file

To make a copy, right-click and select Download.

Right-click to edit and download

To add code, right-click and select View/Edit.

Right-click to edit and download

Add your code. Then click File and select Save.

Save your changes

Confirm your changes by selecting Yes.

Confirm changes

Once updated, you receive a confirmation message.

Update confirmation

Finally, visit your website to check that everything is working.

Conclusion

Functions PHP is in your WordPress theme folder.

You can access it through your WordPress admin, hosting Cpanel, or an FTP client.

Before making changes to functions PHP, ensure the code you plan to add is correct. Functions PHP is essential for your site.

I recommend accessing functions PHP through your Cpanel or an FTP client.

You can download a copy to your computer before you edit. Should you break your site, replace the edited one with the original.

I hope you found my article informative. If you have questions, please leave them below.


by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.