Include Childtheme
This support request was posted in Smart by Christian_01
- Christian_01 September 5, 2017 at 5:24 pm
Hello,
I want to create a child-theme. I used your own description and it doens’t work.
In my function.php of the child-theme, I wrote:
<?php add_action( 'wp_enqueue_scripts', 'my_theme_child_enqueue_styles' ); function my_theme_child_enqueue_styles() { wp_enqueue_style( 'my—theme-style', get_template_directory_uri() . '/style.css' ); } ?>
and in my style.css of the child-theme:
/*
Theme Name: Smart-Child
Description: smart-child-theme
Author: Christian
Template: smart
Version: 1.0.0*/
I create the folder “my-theme-child” in the directory: /wp-content/themes
and the function.php. and style.css to this folder.
I hope you can help me to create the child-theme correctly.
Best,
Christian
Juanfra Aldasoro September 5, 2017 at 5:40 pmHi Christian,
I hope you are doing well. Thank you for writing.
You already have access to a child theme in the download package for you to use as you want. Have you checked that already? If you go to your dashboard, you should be able to download it. You can also download it by getting the theme package on Themeforest, the name of the ZIP is smart-child.
Best,
Juan.Juanfra Aldasoro September 5, 2017 at 7:02 pmThanks for the follow-up Christian.
I’m glad it worked.
Have a nice day,
Juanfra.
This topic is marked as resolved
Only the topic author can re-open this thread.