Forums

[resolved] Creating child theme problem (11 posts)

  1. wlashack
    Member
    Posted 1 year ago #

    I am trying to create a child theme named "Quanties" for twentyten template. i create a folder Quanties in the same folder where twentyten folder is. and i create a style.css file here. but whatever code i write, when trying to activate my child theme wordpress says "the theme is broken" and i must set the twentyten theme back. even when my style.css is almost empty like this example:

    /*
    Theme Name: Quanties
    Theme URI: http://www.wlashack.com
    Description: Child Theme for twentyten default theme for WordPress
    Author: wlashack
    Author URI: http://www.wlashack.com
    Template: twentyten
    Version: 1.0
    */

    @import url('../twentyten/style.css');

    wtat is wrong? thanks a lot for advice.

  2. govpatel
    Member
    Posted 1 year ago #

    Are you creating the child in themes folder not in twentyten folder

  3. wlashack
    Member
    Posted 1 year ago #

    yes. the folders structure is:

    themes
    twentyten
    Quanties
    style.css

  4. wlashack
    Member
    Posted 1 year ago #

    oh, it removed the spaces. :) once more:

    themes
       twentyten
       Quanties
          style.css
  5. Root
    Member
    Posted 1 year ago #

    Why not copy n paste style.css unto yr new child theme folder. At the moment one style.css is importing another style.css .its a loop......

    so do what i suggest and delete the import statement

  6. govpatel
    Member
    Posted 1 year ago #

    You have import wrong

    @import url('../twentyten/style.css');
    this what you have it should be

    @import url("../twentyten/style.css");

  7. wlashack
    Member
    Posted 1 year ago #

    no, it is not the mistake. no matter if i use single quotes or double quotes, the problem still remains. it must appear somewhere during theme activation.
    1. if twentyten is active and my child is in the list of available themes, everything looks ok and the theme twentyten works perfectly on my site quantummind.howto.cz.
    look here: http://www.ulozto.cz/6914544/01-jpg

    2. when i try to activate the child theme, error message appears and the admin panel is unable to display info from the style.css header - author, files folder etc.
    look here: http://www.ulozto.cz/6914597/02-jpg

    3. and this is how the folders structure looks and the whole contents of my style.css: http://www.ulozto.cz/6914637/03-jpg

  8. wlashack
    Member
    Posted 1 year ago #

    SOLVED! :)

  9. Root
    Member
    Posted 1 year ago #

    have fun.......

  10. greenpeas
    Member
    Posted 1 year ago #

    @govpatel

    Most of the documentation shows the import url incorrectly.... glad I found your comment! Mine is working now. Only the custom header image isn't showing up.

  11. greenpeas
    Member
    Posted 1 year ago #

    Ok, just uploaded the image.... all working now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.