How to edit your Custom.php file

Custom PHP Edit

With the Thesis Theme Framework, there is a lot you can do from the WordPress Thesis Interface. You can build you screen with the Skin Editor; you can style your page with the Custom CSS.

However, at some point you may want to do more. This may involve you changing or creating new Php functions that will get run as part of your finished theme. To do this, you edit a file called Custom.Php which will be part of your Thesis Skin.

I’m writing this post to explain how you can do this, what you need to do, and I am writing it once so that it can be referenced in the future.

So, how do we edit the custom.php file

So, the custom.php file as been created in such a way that you can not edit from the WordPress -> Appearance -> Editor (until many other theme files). In my opinion, its been done in a way to make sure you don’t make these changes easily to ensure that, when you do, you know enough about your site so that you don’t break it – or at least know how to fix it if you do.

To edit the custom.php file you need to use an FTP client to log into the site host server, then navigate to the correct directory. Then download the file to your local computer, edit the file and upload it back to the server.

As I say, done in a way to not make it so easy. So, to run through this in steps.

1) Use FTP to login

So, hosting services have many different ways they can offer FTP. Some make you create FTP accounts and use a tool such as filezilla. Others offer an integrated FTP tool. I can’t go through them all, so you need to check with your host and find out how you can FTP to your service.

2) Navigate to the custom.php file

Once your logged in you need to navigate to the file. This is located at

<siteroot/wp-content/thesis/skins/<your skin>/custom.php

So, in regards to me and also using the Classic Responsive theme, my file is located in:


3) Download and edit the file

Next, use the FTP client to download the file to your local computer. Edit the file, add the new code you want to add (which could be from a tutorial that has linked to this page).

Save the changes. Finally, upload the custom.php file back to the same location on the host service.

Changes finshed

Once done, the changes have been uploaded and are being used when you goto your site next.

About the author: I’m a Software Engineer by trade and for a while I have been spending my time creating Websites and Blogs with Wordpress. I recently started to use the Thesis Framework and found only a few tutorials and help. So, I started this site to document what I learn and to share with others. I’m also available to help on a one to one basis for those that would like to work with me.

{ ( 2 comments… add one ) }

Leave a Comment