• Resolved csarti

    (@csarti)


    I have created a twentyeleven child theme with the following code in the style.css file:
    /*
    Theme Name: telstar
    Theme URI: http://xxxxxxxxxxx
    Description: Twentyeleven child-theme adapted for BBC Telstar
    Author: Christian Sarti
    Version: 0.0.1
    Template: twentyeleven
    Tags: two-columns, right-sidebar, custom-header, custom-colors, custom-background, custom-menu, theme-options, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style
    */

    @import url(‘../twentyeleven/style.css’);

    I previously had already done some work on my site, like adding plugins, addings another menu, addings pages etc.
    But I had not edited any theme css files.

    When I activate the theme, the new header is about the only thing that is still right, everything else is completely mangled.

    Am I missing something here? Should I have added some other files or folders for it to work.
    Thanks for any help.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Should I have added some other files or folders for it to work.

    No. You can download a bare bones Twenty Eleven child theme from Quirm.net if you want to try that out.

    Thread Starter csarti

    (@csarti)

    This works! Thank you!
    But, I would like to understand why:

    The new style.css file contains:

    /*
    Theme Name:Twenty Eleven Child
    Version: 1.0
    Theme URI: http://quirm.net/themes
    Description: A basic starter child theme for Twenty Eleven
    Author: Mel Pedley
    Author URI: http://blackwidows.co.uk
    Template: twentyeleven
    License: GNU General Public License v2
    License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    */

    /* Copyright 2009-2010 Mel P. (email : esmi@quirm.net)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License version 2,
    as published by the Free Software Foundation.

    You may NOT assume that you can use any other version of the GPL.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
    USA

    The license for this software can also likely be found here:
    http://www.gnu.org/licenses/gpl-2.0.html
    */

    /* Import layout */
    @import url(../twentyeleven/style.css);

    AND the childtheme folder also contains a functions.php file with just one line of code:
    <?php

    Why does this work and not the one I had made?

    Thank you!!

    Thread Starter csarti

    (@csarti)

    NO!!! IT DOES NOT WORK YET!

    When I use the “Twenty Eleven Child 1.0 by Mel Pedley” everything looks fine in the Theme preview, but when I activate it, it has another Header picture and the custom menu I had made comes out completely wrong, with all the sub-entries in my menu being listed in rows….

    Why is the Theme fine in the preview and not working properly when activated???

    when I activate it, it has another Header picture

    You have to upload a new custom header. Header images are saved on a per-theme basis. Other than that, can we see the theme in use on the site?

    Thread Starter csarti

    (@csarti)

    Here’s the test site: http://asknreceive.com/test/

    Um – that site is using a modified Twenty Eleven theme – not a child theme.

    Thread Starter csarti

    (@csarti)

    Yes, this is the parent theme, which I had to modify a little bit, as the child theme did not work. I’m activating the child theme now, for you to see the difference.

    The child theme is working. What’s the problem?

    Thread Starter csarti

    (@csarti)

    Yes, it works! I’m learning, slowly, but steadily. I uploaded the new header picture and reactivated the custom menu…

    But I still don’t get why the child theme I made from the file I downloaded from http://quirm.net/themes/twenty-eleven-child/ does not work when I modify it. I removed all the unnecessary info, put my theme name, my name etc in it and removed all their info:

    /*
    Theme Name:Telstar
    Version: 1.0
    Theme URI:
    Description: Twenty Eleven childtheme for BBC Telstar
    Author: Christian Sarti
    Author URI:
    Template: twentyeleven
    License:
    License URI:
    */

    /* Import layout */

    @import url(../twentyeleven/style.css);

    Why does that one not work, as it contains all the necessary code?

    Sorry to keep at it, I really don’t like when I don’t understand….

    Thank you for any enlightening ))))o(((((

    I just copied and pasted your child theme style.css and activated it and it showed up, ativated and worked fine.

    What do you mean when you say it is not working, how are you testing it?

    /*
    Theme Name:Telstar
    Version: 1.0
    Theme URI:
    Description: Twenty Eleven childtheme for BBC Telstar
    Author: Christian Sarti
    Author URI:
    Template: twentyeleven
    License:
    License URI:
    */
    
    /* Import layout */
    
    @import url(../twentyeleven/style.css);
    
    #site-title{
    	display: none;
    }

    This worked just fine, I see you have it activated what changes are not working?

    HTH

    David

    Thread Starter csarti

    (@csarti)

    It works now… I guess something weird happened, or I did a thinking mistake which I cant figure out in retrospect. Anyway THANK YOU for this great help! I love the responsiveness of this forum!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Twentyeleven child theme does not load properly’ is closed to new replies.