Include Childtheme

This support request was posted in Smart by Christian_01

Request ID #33510 Resolved
  • 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

    Hi 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.

    Thank you, Juanfra. It works.

    Best,

    Christian

    Thanks for the follow-up Christian.

    I’m glad it worked.

    Have a nice day,
    Juanfra.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic is marked as resolved

Only the topic author can re-open this thread.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server