Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I create a new style.css and use it in child theme. And I create a new folder in wp-content and name it as themename-child and upload the style.css that I created. Now, I go to wp dashboard -> Appearance -> Themes and I look the child theme that I create. And I found this error:

Broken Themes

The following themes are installed but incomplete. Themes must have a stylesheet and a     template.

Name    Description
Accesspress Lite    The parent theme is missing. Please install the "AccesspressLite" parent theme.

Here's the css child theme format:

/*
Theme Name:   Accesspress Lite
Theme URI:    http://access-keys.com/accesspresslite/
Description:  Accesspress Lite Child Theme
Author:       Yang
Author URI:   http://www.example.com
Template:     accesspress-lite
Version:      2
Tags:         blue, white, light, custom-menu, one-column, two-columns, three-columns,   left-sidebar, right-sidebar, fixed-layout, fluid-layout, custom-background, featured-image-header, sticky-post, theme-options, threaded-comments, featured-images, full-width-template, custom-header, flexible-header, responsive-layout
Text Domain:  accesspress-lite-child
*/

@import url("../accesspress-lite/style.css");
share|improve this question

3 Answers 3

I tried with this one, it worked:

/*
 Theme Name:   AP Child
 Theme URI:    #
 Description:  AP Child Theme
 Author:       John Doe
 Author URI:   http://example.com
 Template:     accesspress-lite
 Version:      1.0.0
*/

@import url("../accesspress-lite/style.css");

I think you should change the name of child theme.

share|improve this answer
    
should i change the version? Since the new version of the theme is 2 –  Yang Jun 20 at 4:11
    
I think version may differ from parent theme. –  Nilambar Jun 20 at 4:15

This is an answer I recently did, but deleted. :-). This should hep you out and clear up a few things. This was done for another theme, you should just change the parent theme paths accordingly

For the sake of creating a child theme and understanding what is what, I will help you here

/*
Theme Name:   Accesspress Lite Child
Theme URI:    http://access-keys.com/accesspresslite/
Description:  Accesspress Lite Child Theme
Author:       Yang
Author URI:   http://example.com
Template:     accesspress-lite
Version:      2
Tags:         blue, white, light, custom-menu, one-column, two-columns, three-columns,   left-sidebar, right-sidebar,
fixed-layout, fluid-layout, custom-background, featured-image-header,
sticky-post, theme-options, threaded-comments, featured-images,
full-width-template, custom-header, flexible-header, responsive-layout
Text Domain:  accesspress-lite-child
*/

@import url("../accesspress-lite/style.css");
  • Theme Name => The name of your child theme, can be anything to your desire
  • Theme URI => The path to the theme where it can be downloaded
  • Description => Short description what your theme is all about.
  • Author => The person who coded the child theme
  • Author URI => URL to the website of the author who coded the theme
  • Template => The folder in which the parent themes' style.css resides
  • Version => self explanatory, the version to the theme
  • Tags => Related tags for your theme for tag search results, used on wordpress.org
  • Text Domain => The text domain (unique identifier) that will be used by translators for translatable strings in the theme
  • @import url(); => The actual path to the style.css of the parent theme

What is needed in a child theme:

Only the following are needed for a personal child theme that will not be distributed

  • Theme Name
  • Template
  • Text Domain (only if you going to localize your theme using po and mo files)
  • @import url()
share|improve this answer
    
Did you manage to solve your problem. If yes, please consider excepting the answer that solved your problem by clicking on the check mark next to the appropriate answer just below the up/down arrows. If you solved your own problem without the use of any of the answers, please consider posting your solution and accept your own answer so that we can get this question closed :-) –  Pieter Goosen Jun 27 at 5:49

add in themename-child style.css:

/*
Theme Name: Your Theme
Version: 1.0
Author: Your Author
*/

uploat to host

share|improve this answer
    
I already put that but still I have an error –  Yang Jun 20 at 4:04
    
remove all code in style.css and add my code and view again –  Hoang An Jun 20 at 4:06
    
you add folder to wp-content or wp-content/theme/ ???? –  Hoang An Jun 20 at 4:07
    
Still I have same error –  Yang Jun 20 at 4:09
    
wp-content/theme –  Yang Jun 20 at 4:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.