• Resolved chezshire

    (@chezshire)


    I am attempting to create a child theme of the twenty eleven theme which you can see HERE. The theme itself appears to be loading (I think?) but none of the graphics from the parent are loading WHICH I thought that they would.

    I created a folder titled ‘twentyeleven-child’, within that folder I put a ‘style.css’ file that reads like so:

    /*
    Theme Name: Twenty Eleven Child Theme
    Author: Self-Help WordPress User
    Template: twentyeleven
    */
    
    @import url("../twentyeleven/style.css");

    I dont know what I am doing wrong – i’m new to wordpress.

Viewing 15 replies - 1 through 15 (of 19 total)
  • Did you follow these docs? Child Themes « WordPress Codex

    Thread Starter chezshire

    (@chezshire)

    To the best of my abilities, yes I did. I created the folder called ‘twentyeleven-child’ and placed a css file titled ‘style.css’ within it, then attempted to implement it and the results appear to be that the images don’t load. I’m completely flummoxed by this.

    Did you place the folder in /wp-content/themes/ ? Did you then go to themes in admin dashboard and activate it?

    none of the graphics from the parent are loading WHICH I thought that they would.

    activating a child theme is like activating a new theme – you will need to set any graphics again.

    more important – you seem to have elements of Twenty Twelve in your alledgedly Twenty Eleven child theme.

    apart from style.css, what other files are you using in the child theme?

    Thread Starter chezshire

    (@chezshire)

    Thanks for Replying SWD and Alchymyth.

    Yes, I’ve activated the theme by going to the theme by going to my dashboard > theme > manage themes and then selecting the child theme and setting it to active. The result of having done so can be seen here.

    I have no other files in the my child-theme folder. I thought that the base settings of the parent theme would carry over so if you made a child theme and did nothing by add a CSS file like below, you would get a duplicate of the existing parent theme. I set no graphics for the parent theme, i’m just trying to get the child theme to display as the parent theme does when activated. And if i’m getting some elements from the twenty twelve theme, i’ve no idea why as the only thing existing in my twentyeleven-child theme fold is a css file.

    I’ve included screen shots to illustrate that point.

    My Current CSS (which is in the child theme folder)

    /*
    Theme Name: Twenty Eleven Child Theme
    Author: Self-Help WordPress User
    Template: twentyeleven
    */

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

    Screenshot of twentyeleven-child folder:

    Screenshot of css folder:

    Something’s definitely messed up – as it is loading twentytwelve elements on that child theme…

    Looks like you have some errors going on – this is what shows up o the page you linked to above:

    Warning: require(/home/maxster/scc.maxworks.org/_classes/_298wp/_testDev/wp-content/themes/twentytwelve/inc/theme-options.php) [function.require]: failed to open stream: No such file or directory in /home/maxster/scc.maxworks.org/_classes/_298wp/_testDev/wp-content/themes/twentyeleven-child/functions.php on line 86
    
    Fatal error: require() [function.require]: Failed opening required '/home/maxster/scc.maxworks.org/_classes/_298wp/_testDev/wp-content/themes/twentytwelve/inc/theme-options.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/maxster/scc.maxworks.org/_classes/_298wp/_testDev/wp-content/themes/twentyeleven-child/functions.php on line 86

    And no, as Alchymyth said, a child theme does not carry over options or settings from a parent theme.

    Thread Starter chezshire

    (@chezshire)

    If it is loading elements of the child theme, i don’t know what they are, also saying that to me is very meaningless as I don’t really know what you are referring too; I am completely new to this. I am trying to set up my first theme.

    The errors you just experienced were caused by my attempting some fixes/changes (i tried copying the entire twenty-eleven theme folder, removing the it’s style.css and replacing it with the new style.css folder to see what that would do. The result was a lot of errors.

    I’ve reverted the folder back.

    I have the twenty eleven theme here (this is what my child theme ought to be referring too).

    I’d suggest that you delete and reinstall twentyeleven and start over on your child theme.

    Thread Starter chezshire

    (@chezshire)

    I will try that

    Thread Starter chezshire

    (@chezshire)

    I downloaded the twenty eleven theme again, deleted the old one, uploaded the new one and still the same situation persists.

    Did you also start over with re-creating the child theme?

    Thread Starter chezshire

    (@chezshire)

    Yes. I’m now doing it again, following this tutorial which explains a bit more about making a child theme of the twenty-eleven theme such as you need to include the header.php file from the twenty-eleven them into the child theme folder; So it maybe that i didn’t do anything wrong, just that duplicating the theme to get a starting point requires more steps that aren’t covered by the ‘create a child-theme’ tutorials.

    No, you do NOT need to include the header.php file unless you are making changes to it. This is all you need:

    http://codex.wordpress.org/Child_Themes

    For sure, to start with, put ONLY the style.css file in the child theme.

    Thread Starter chezshire

    (@chezshire)

    I did that. And that DIDN’T work. Adding the header DID work. My Problem seems to be solved by having added the header. I understand that you say that I don’t need to do this, but it is hard to argue with my having done this and suddenly the nag is there, styled the way i’d expected and that the image is there on the front page (yes?).

    Sorry, but something is still messed up – if you look at the head section of your site, you’ll see links to twentytwelve theme and TWO links to the child them stylesheet:

    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="http://scc.maxworks.org/_classes/_298wp/_testDev/wp-content/themes/twentyeleven-child/style.css" />
    <link rel="pingback" href="http://scc.maxworks.org/_classes/_298wp/_testDev/xmlrpc.php" />
    <!--[if lt IE 9]>
    <script src="http://scc.maxworks.org/_classes/_298wp/_testDev/wp-content/themes/twentytwelve/js/html5.js" type="text/javascript"></script>
    <![endif]-->
    <link rel="alternate" type="application/rss+xml" title="testDev &raquo; Feed" href="http://scc.maxworks.org/_classes/_298wp/_testDev/?feed=rss2" />
    <link rel="alternate" type="application/rss+xml" title="testDev &raquo; Comments Feed" href="http://scc.maxworks.org/_classes/_298wp/_testDev/?feed=comments-rss2" />
    <link rel='stylesheet' id='twentytwelve-fonts-css'  href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext' type='text/css' media='all' />
    <link rel='stylesheet' id='twentytwelve-style-css'  href='http://scc.maxworks.org/_classes/_298wp/_testDev/wp-content/themes/twentyeleven-child/style.css?ver=3.5.1' type='text/css' media='all' />
    <!--[if lt IE 9]>
    <link rel='stylesheet' id='twentytwelve-ie-css'  href='http://scc.maxworks.org/_classes/_298wp/_testDev/wp-content/themes/twentytwelve/css/ie.css?ver=20121010' type='text/css' media='all' />
    <![endif]-->
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://scc.maxworks.org/_classes/_298wp/_testDev/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://scc.maxworks.org/_classes/_298wp/_testDev/wp-includes/wlwmanifest.xml" />
    <meta name="generator" content="WordPress 3.5.1" />

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