Title: Creating child theme
Last modified: August 31, 2016

---

# Creating child theme

 *  Resolved [ragulin](https://wordpress.org/support/users/ragulin/)
 * (@ragulin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-child-theme-10/)
 * Hi, Im trying to make child theme, but I am failing somewhere. It is my first
   child theme creation, so I am not sure if Im doing everything right. I made a
   folder in wp-content/themes…I named it baskerville-child and added a style.css
   file in this folder. The style contains:
 *     ```
       /*
       Theme Name: Baskerville
       Theme URI:  http://www.andersnoren.se/teman/baskerville-wordpress-theme/
       Description: Baskerville child theme
       Author: Anders Noren
       Editor: ****
       Author URI: http://www.andersnoren.se/teman/baskerville-wordpress-theme/
       Template: baskerville
       Version: 1.0.0
       */
   
       @import url(„http://pizza-zdice.cz/www/wp-content/themes/baskerville/style.css“);
   
       /* =Úprava šablony zaèíná za touto èarou:
       ```
   
 * Where is my mistake? Thanks for help

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-child-theme-10/#post-6927628)
 * You can’t use fancy quotes in your `@import` line; they must be straight quotes.
   You should use a plain-text editor like Notepad when you create your child theme’s
   files.
 *  [Madhusudan Pokharel](https://wordpress.org/support/users/madhusudan977/)
 * (@madhusudan977)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-child-theme-10/#post-6927713)
 * Hello, In your style.css, your child theme name as same as original name. So 
   it’s not working. Change the Theme name as below:
 *     ```
       /*
       Theme Name: Baskerville Child
   
       */
       ```
   
 * Next, delete your [@import](https://wordpress.org/support/users/import/) url …
   line and instead create functions.php ie same directory as style.css. And add
   following code inside functions.php:
 *     ```
       <?php
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles');
       function theme_enqueue_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css');
   
       }
       ?>
       ```
   
 * I hope it will help resolve your issue.
 *  Thread Starter [ragulin](https://wordpress.org/support/users/ragulin/)
 * (@ragulin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/creating-child-theme-10/#post-6927826)
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Creating child theme’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/baskerville/2.3.1/screenshot.jpg)
 * Baskerville
 * [Support Threads](https://wordpress.org/support/theme/baskerville/)
 * [Active Topics](https://wordpress.org/support/theme/baskerville/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/baskerville/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/baskerville/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [ragulin](https://wordpress.org/support/users/ragulin/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/creating-child-theme-10/#post-6927826)
 * Status: resolved