Overriding the functions.php parent file in a child theme
Author | Posts |
---|---|
December 3, 2014 at 6:03 pm 31718 | |
Hi, I would love to know if there is a way that i can override the parent functions.php file in a child theme. I have installed the Dokan plugin and the theme too, but i would love to override some of the functionalities in the functions.php file, I don't won't to do that in the parent file in order to get all the updates and all the new features. And can you tell me what are the required files that i have to put in my child theme in order to make it work properly. For example, the file that I want to override is the template-tags.php file, this file is being called from the functions.php file, and there are more stuff that I want to customize too. Thanks. | |
December 3, 2014 at 7:07 pm 31721 | |
Hello Hovsep, In your child theme you have to maintain the file order of the main theme. You can use any file which you want to customize but you have to maintain the same file order as main theme. Hope you got it. Thank you 🙂 | |
December 3, 2014 at 8:51 pm 31730 | |
I’m doing that but it’s not working, i have figure out why but i can’t fix it. | |
December 4, 2014 at 1:30 pm 31800 | |
Hello Hovsep, Can you please tell us exactly which function you want to override? | |
December 9, 2014 at 5:42 pm 32046 | |
Basically what I’m trying to do is the following: | |
December 10, 2014 at 11:07 am 32073 | |
Hello Hovsep, Please follow the following instruction- 1. Copy header.php file from the parent theme and paste it to your child theme. Please check and let me know. Thank you 🙂 | |
December 12, 2014 at 7:45 pm 32212 | |
thanks a lot, it works. | |
December 12, 2014 at 7:47 pm 32213 | |
Hello Hovsep, Very glad to know that. If you have no more problem then please mark this topic as resolved. Thank you 🙂 |