Overriding a function in a child theme
-
Hi everybody,
I’m trying to override the generate_add_footer_info function in my child theme’s functions.php file. I’m following the solution posted here: https://generatepress.com/forums/topic/cant-get-child-file-in-inc-directory-to-override-parent/
In the thread, Tom says: “Also, each function is wrapped in a function_exists() function, so you can grab the entire function (including the function_exists() part) and paste it into your functions.php file and that function will be overwritten.”.
I’m literally doing that, but it isn’t working at all. Any ideas? Thank you very much in advance.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Overriding a function in a child theme’ is closed to new replies.
