Reputation: 259
I'm working on changing some stuff in a theme using a child theme I created.
There's a function in the parent theme that I want to change, and it doesn't sit in functions.php but in a file inside a subfolder (theme/admin/admin.php).
how do I rewrite this function?
this is the original function (it needed):
http://www.codeshare.io/v5aTK
Upvotes: 0
Views: 247
Reputation: 2216
Taking into account that the function in the parent theme isn't wrapped in:
if( !function_exists('jtheme_home_sections_settings') ){
...
}
it won't be possible to override it in your child theme (you will get a function is already defined error).
Upvotes: 1