in Wordpress Themes by robertiles (150 points)
I cannot create a child theme of a TT6 theme. I did this all the time with TT4 and just used the standrd Wordpress Codex approach .. but with TT6 the site is just broken as it tries to load all the css from the child theme directory ....

is there some non-standard magic I need to add to functions.php?

1 Answer

by sarah (15.2k points)
selected by robertiles
Best answer

Please use the following php code in the child theme functions.php file.

add_action( 'wp_enqueue_scripts', 'templatetoaster_enqueue_styles' );
function templatetoaster_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
     wp_enqueue_style( 'bootstrap-style', get_template_directory_uri() . '/css/bootstrap.css' );
by robertiles (150 points)
Brilliant, thank you ... perhaps this should be in the doc somewhere?!
Interested in localizing/Translating TemplateToaster Software in your native language in exchange of a Pro License ? Contact Us