Making a child of a .php file?
-
Ok there was a post on this before, but it’s closed now and I’m still just a tad confused. I’ve made a child theme of twenty ten and understand how that all works. However, I have altered the footer.php file, but am looking to make a child version of THAT so THOSE changes don’t go away, if and when I update.
The changes I’ve made aren’t huge because I know it’s good to keep the original file in tact and I wanted to consult somebody on the matter before I go messing with it any further. Besides I’ve made a back-up so no need to worry.
So, am I supposed to make a reference to the file like so?:
@import url(“../twentyten/footer.php”);
and do the same thing as I did with the style.css file? If so, do I do it IN the child style.css file? If so, how exactly.
If not, do I make another file in my child directory called footer.php and do it all separately?
I also feel like I’m supposed to actually copy the original file itself over into my child directory somewhere along the way? Anywho, that is my question, sorry I know it’s a little convoluted right now so bear with me. I’m still trying to put together a mental schematic of it all. But any help is greatly appreciated!
Thanks!
- The topic ‘Making a child of a .php file?’ is closed to new replies.