# Create a child theme

**URL:** <https://colorlibsupport.com/t/create-a-child-theme/20718>\
**Category:** Blaskan\
**Created:** [April 2, 2018, 5:06pm UTC](https://colorlibsupport.com/t/create-a-child-theme/20718 "2018-04-02T17:06:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![irynad](https://colorlibsupport.com/user_avatar/colorlibsupport.com/irynad/32/539_2.png) [@irynad](https://colorlibsupport.com/u/irynad)\
**Post date:** [April 2, 2018, 5:06pm UTC](https://colorlibsupport.com/t/create-a-child-theme/20718/1 "2018-04-02T17:06:51Z")

</div>

Hi everyone! I try to create a child theme following steps described on [wordpress.org](http://wordpress.org), but having trouble enqueueing the parent and child theme stylesheets. I’m doing it by adding a `wp_enqueue_scripts action` and using `wp_enqueue_style()`in my child theme’s functions.php and it seems not to work.

Here is my functions.php:

```auto
<?php
function my_theme_enqueue_styles() {

    $parent_style = 'blaskan-style';  

    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
        get_stylesheet_directory_uri() . '/style.css',
        array( $parent_style ),
        wp_get_theme()->get('Version')
    );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>

```

Could you please help me and tell what I’m doing wrong, thanks in advance.

---

<div class="post-metadata">

**Author:** ![colorlibsupport](https://colorlibsupport.com/user_avatar/colorlibsupport.com/colorlibsupport/32/1494_2.png) [@colorlibsupport](https://colorlibsupport.com/u/colorlibsupport)\
**Post date:** [April 3, 2018, 5:50am UTC](https://colorlibsupport.com/t/create-a-child-theme/20718/2 "2018-04-03T05:50:23Z")

</div>

hi there

Please use this [plugin](https://wordpress.org/plugins/temporary-login-without-password/) to create temporary access for us,&nbsp;its automatic login link and does not requires sharing your admin details. here is&nbsp;[How To](http://www.wpbeginner.com/plugins/how-to-create-temporary-login-for-wordpress-no-passwords/)&nbsp;guide. at the and don’t&nbsp;forget about&nbsp; “Set as private reply” at the bottom of the message box &nbsp;

---

<div class="post-metadata">

**Author:** ![jeannestacey](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jeannestacey](https://colorlibsupport.com/u/jeannestacey)\
**Post date:** [April 4, 2018, 11:50am UTC](https://colorlibsupport.com/t/create-a-child-theme/20718/3 "2018-04-04T11:50:30Z")

</div>

Can it be applied to any theme? I am curious to try it now. Thank you for this simple tutorial, Noda. [I need someone to write my assignment](https://www.assignmentvalley.co.uk/do-my-assignment/)

---

<div class="post-metadata">

**Author:** ![colorlibsupport](https://colorlibsupport.com/user_avatar/colorlibsupport.com/colorlibsupport/32/1494_2.png) [@colorlibsupport](https://colorlibsupport.com/u/colorlibsupport)\
**Post date:** [April 4, 2018, 1:13pm UTC](https://colorlibsupport.com/t/create-a-child-theme/20718/4 "2018-04-04T13:13:09Z")

</div>

hi there

@jeannestacey - advertisement is not allowed here 😉

---

<div class="post-metadata">

**Author:** ![bane55](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/b/779978/32.png) [@bane55](https://colorlibsupport.com/u/bane55)\
**Post date:** [July 1, 2018, 10:57am UTC](https://colorlibsupport.com/t/create-a-child-theme/20718/5 "2018-07-01T10:57:16Z")

</div>

Good evening. Does the child theme have to stay active throughout the life of the site, and when we want to make changes, it is only and only in this one? And how to do exactly when you have an update of its theme? there is need to update the child theme or it does it automatically once the basic theme is updated?

* * *

[https://getappvalley.com/](https://getappvalley.com/)  
[https://tutuapp.win/](https://tutuapp.win/)  
[https://tweakbox.mobi/](https://tweakbox.mobi/)

---

<div class="post-metadata">

**Author:** ![mikesupport17](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mikesupport17](https://colorlibsupport.com/u/mikesupport17)\
**Post date:** [July 1, 2018, 5:25pm UTC](https://colorlibsupport.com/t/create-a-child-theme/20718/6 "2018-07-01T17:25:45Z")

</div>

Hi there,  
Thanks for writing back.  
To answer your question here, an update only affects the parent theme. You shouldn’t update your child theme. I would recommend on having any theme file customization within the child theme to avoid overwriting of the customized files within the parent theme upon a theme update. Please check on this article ([Child Themes « WordPress Codex](https://codex.wordpress.org/Child_Themes)) for more information on child themes.

I hope this helps.  
Best Regards,  
Support.

---

<div class="post-metadata">

**Author:** ![hasanden](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hasanden](https://colorlibsupport.com/u/hasanden)\
**Post date:** [July 28, 2018, 9:39am UTC](https://colorlibsupport.com/t/create-a-child-theme/20718/7 "2018-07-28T09:39:31Z")

</div>

We need to be careful while creating [child theme](https://www.digitalwhatsup.com/) and then editing it. Take all precautions before editing your theme.

---

<div class="post-metadata">

**Author:** ![mikesupport17](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mikesupport17](https://colorlibsupport.com/u/mikesupport17)\
**Post date:** [July 28, 2018, 10:19am UTC](https://colorlibsupport.com/t/create-a-child-theme/20718/8 "2018-07-28T10:19:18Z")

</div>

Hi Hasanden,  
Thanks for writing in.  
Relating to your statement here, yes that is true.  
Please let us know if you have any questions.  
Best Regards,  
Support.
