Hi, module redefinition is not working in child theme as 1.7 version.
1. Fresh install newsmag 1.7 and demo data
http://www.screencast.com/t/giPj5wWn8rq
2. Fresh install&activate child-theme newsmag 1.7: Main menu breaks (???)
http://www.screencast.com/t/pubDxQRAa
3. Redefinition of td_module_1, copy from parent to child-theme and modify
http://www.screencast.com/t/mfrF1ynjfc
http://www.screencast.com/t/uqsG9qVMI
4. Modify homepage to use block3 (module1). The parent theme module1 is used. No child redefinition
http://www.screencast.com/t/NuXMh44s
http://www.screencast.com/t/A2jWipKK8diX
Best regards
-
This topic was modified 11 years by
mpindado.
I had similar question few days ago, and got this answer:
Alin [tagDiv]
#44002
Apr 7, 2015 at 8:48 amHi,
Please note within the latest theme version we have changed the child theme system (for which we will have a documentation available soon) and because of that at the moment module and parts files can’t be overwritten via child theme. Until then please make you change in the main theme file.
Sorry for the inconvenience!Thanks!
Hi, you should actually put it in functions.php after parent theme has been setup, something like this:
add_action( ‘after_setup_theme’, ‘child_after_setup_theme’ );
function child_after_setup_theme ()
{
td_api_module::update_key(‘td_module_1′,’file’,get_stylesheet_directory() . ‘/XXX-RELATIVE-PATH-FROM-CHILD-THEME/td_module_1.php’);
}
Best regards
