• Resolved bloomerjj

    (@bloomerjj)


    Hi, I found it quite difficult to create a child theme, but do have a working version by adding the following to my child theme’s function.php file.

    function theme_styles() {
        wp_enqueue_style( 'child-theme-styles', get_stylesheet_uri() );
    }
    
    add_action('wp_enqueue_scripts', 'theme_styles', 99);

    I’m not sure if this is the proper way to do it, but thought it would be helpful to include in the documentation.

    If there is a better way to go about this please advise.

    Thanks,

    John

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @bllomerjj

    I’m also in the way to create a child time, and then a function.php file …
    Do the code that you mentionned satisfies you since the day you add it?
    Do you think it can run?
    Thank you.

    As for me, I usualy add this code:

    <?php
    /**
    ** activation theme
    **/
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }

    Best regards
    Anne

    Thread Starter bloomerjj

    (@bloomerjj)

    Hi the code I posted is working for me. I do notice that when I leave editing in elementor i get some odd styling from time to time which a refresh fixes. However I haven’t seen that issue any other time.

    Ok. Thank you.

    Hi,

    We just released an update to make sure the theme can be easily used with a child theme. We also updated the documentation here with a special mention for Neve https://docs.themeisle.com/article/14-how-to-create-a-child-theme.
    Please let me know if that helps.

    Regards,
    Rodica

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child theme approach’ is closed to new replies.