what php file? I’m assuming you are trying to accomplish something in particular. There can be many php files depending on what you are trying to accomplish…
as a general rule, php files go into your child theme folder, just like style.css
The php file wouldn’t be blank… it would have php code in it… again, depending on what you are trying to do
The php file itself wouldn’t be zipped. It would be ftp’d into your child theme folder. Unless you haven’t uploaded your child theme yet. In whch case the whole child theme gets zipped so that you can upload it through the WP theme manager
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
You again! 😉 Now what are you talking about…?
You can put PHP anywhere in your child theme but functions usually go in the functions.php in the child theme directory.
http://codex.ww.wp.xz.cn/Child_Themes#Using_functions.php
ah..
well, i don’t have any functions to include just yet.. but i want to know where they go when i do.
so are you saying – i make a functions.php folder and put it in my child theme’s directory?
you make a functions.php file. Don’t put a blank one in there, it’ll crash your site…
But once you have at least 1 function, you can include it
So you would have a folder named whatever your child theme is, then a style.css file, and a functions.php file inside of that folder, functions.php would look like
<?php
//and then your code (slashes are comments, its good to comment your code so you know what your functions do later on)
function whatever() {
and then we just keep adding functions as we have them
}
http://vudu.me/child is an article I wrote about child theme basics if you are interested
ok that’s great. very clear now.. cheers!
i’ll be back tonight with more questions i’m sure!
thanks.
And we’ll be here with more answers!! 😉