• Resolved markp_2000

    (@markp_2000)


    I’m stumped on this. I have search for a similar issue but could not find it.

    I have created a child theme for twentyeleven and placed it in the themes directory.

    twentyeleven-child

    I have added the style sheet

    /*
    Theme Name: Twentyeleven Child
    Description: Child theme for the Twenty Eleven theme
    Author: Mark Parrish
    Author URI: http: //www.parrishconsultinggroup.com
    Template: twentyeleven
    Version: 1.0
    */
    
    @import url('../twentyeleven/style.css');
    
    .wpcf7 label {
        width: 10%;    /*Or however much space you need for the form’s labels*/
        float: left;
        text-align: right;
        margin-right: 4px;
    }

    Yet it still only pulls the twentyeleven style sheet
    snip from the webpage –

    <style>@import url(wp-content/themes/twentyeleven/style.css) ;</style>

    Any ideas?

    Mark

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter markp_2000

    (@markp_2000)

    I believe it is being overridden some where.

    Mark

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Link? It may be easier for us to see what’s going on by demonstration.

    Thread Starter markp_2000

    (@markp_2000)

    Yes, that would be helpful. Sorry

    http://www.judgejohnolson.com/

    I am running wp v3.3.1

    Thread Starter markp_2000

    (@markp_2000)

    OK – so I did another install on a test site and it worked just fine. There must be something in the database that is causing this to be overridden.

    the linked site has no child theme activated – the @import code seems to come from the header of Twenty Eleven directly;

    <style>@import url(wp-content/themes/twentyeleven/style.css) ;</style>

    do you have any plugin installed to turn the links into relative links?

    what happens if you deactivate all plugins?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    That’s really weird.

    You should have this in the HTML

    <link rel="stylesheet" type="text/css" media="all" href="http://www.judgejohnolson.com/wp-content/themes/twentyeleven-child/style.css" />

    But what you actually have is

    <style>@import url(wp-content/themes/twentyeleven/style.css) ;</style>

    Which is flat out wrong.

    In fact almost all of the URLs in your HTML are relative and not absolute. Are you using a plugin to “fix” them to be relative? If so, disable that plugin.

    Edit: DOH! The Sweeper beat me to it! Again! Darn you Sweeper, Daaarrrnnnn yyooouuu!!! ;P

    Thread Starter markp_2000

    (@markp_2000)

    OK – when I activate the twentyeleven theme it changes, but when I re-activate the child theme it does not pull the right style sheet.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Anything in the functions.php file for that child theme? It doesn’t need to be a plugin.

    Thread Starter markp_2000

    (@markp_2000)

    Only one file in the directory and its the style.css file.

    Thread Starter markp_2000

    (@markp_2000)

    I don’t have any plugins that do that.

    Only two plugins – wp-maintenance and contact form 7. I have disable both.

    Mark

    Thread Starter markp_2000

    (@markp_2000)

    I have also deleted and re-installed the twentyeleven theme.

    Thread Starter markp_2000

    (@markp_2000)

    This is from the header.php file in the twentyeleven theme.

    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

    Nowhere in the file does the @import url exist.

    Thread Starter markp_2000

    (@markp_2000)

    I’m thinking a plugin or theme that I removed has something left over that is causing the issue. I’m going to wipe and start again. I’m not far enough along on this project to continue working the problem.

    Mark

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Something is not exactly normal with that installation or theme.

    You’re running WordPress 3.3.1 and your child-theme only has that style.css.

    But when I visit your site, it’s not what’s being displayed. The hgroup is missing and the search field is in the nav bar.

    Just using your style.css should look exactly like this link:

    http://dixie.dembowski.net/wordpress/

    But your site is different.

    Is it just a stock install or have you made changes to the Twenty Eleven theme too?

    Thread Starter markp_2000

    (@markp_2000)

    OK – I now think it has something to do with the style.css file in the child theme directory.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘twentyeleven child theme not working’ is closed to new replies.