• What I did:
    twentyten-child theme active
    WordPress needs updating – do it.
    Themes need updating – do it.
    Site looks slightly different.
    Check Themes – TwentyTen is activated now, child theme deactivated.
    Activate child theme.
    All hell breaks loose.
    Dashboard keeps giving error message.
    Site gives same error message, something about page menu args can’t be loaded twice, line 221 and 229 in functions.php
    Downloaded TwentyTen functions.php from ftp then deleted it from my server.
    Reloaded website, now loads but with errors at the top.
    Back in Dashboard, check Themes. Child theme is now active. Reload site. It looks fine and normal.

    The whole point, as I understand it, of creating a child theme is so updates to the main theme don’t f*** up your site. But that’s exactly what happened! I’m not even sure if my “fix” will hold. Surely it won’t survive another Theme update.

    Did I do something wrong? Should I have deactivated my child theme before updating? And then activate it again after? I’m confused.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you post the contents of your Child Theme style.css file?

    Thread Starter SaladGoat

    (@saladgoat)

    Not sure how that helps but ok.
    It’s the same stylesheet as TwentyTen, with the following added at the bottom:

    .edit-link a {color: #c00; font-size: 200%; text-align: right;}
    p.post-date {font-size: 80%;}
    h3.widget-title {margin-bottom: 1ex;}
    li.cat-post-item {margin-bottom: -10px!important;}

    a.sn_icon {padding: 0!important;}

    img.sn_icon {
    padding!important: 0 11px 0 0;
    }

    .sn_icon img {border: 0px!important;}
    div.icons {padding!important: 0 11px 0 0;
    float: right;
    margin-right: 11px;}
    #sn_icons {
    width: 123px;
    padding: 0 0 10px 11px;
    margin: auto;
    text-align: center;}

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Your Child Theme style.css should have something like this ↓ in the top of the file

    /*
    Theme Name: Twenty Eleven Child
    Description: Child theme for the Twenty Eleven theme
    Author: Your name here
    Template: twentyeleven
    */
    
    @import url("../twentyeleven/style.css");

    http://codex.wordpress.org/Child_Themes#Example_of_a_basic_Child_Theme

    Thread Starter SaladGoat

    (@saladgoat)

    Yeah, it’s got this:

    /*
    Theme Name: Twenty Ten Child
    Description: Child theme for the Twenty Ten theme
    Author: StickBoy
    Template: twentyten
    Version: 0.1.0
    */

    I did not use the @import thingy because then I have to edit two separate files. It’s easier to modify the existing styles if I know where to find them – all in one file, rather than going back and forth.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    the two separate files, where are they?

    Thread Starter SaladGoat

    (@saladgoat)

    There aren’t two separate files. That’s my point. I want it all in one. With the @import, you have to have both files. Having it all in one, there is only one file.

    I still fail to see how styles could mess up the Dashboard and entire site.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Previously, have you been editing the parent theme’s stylesheet?

    Thread Starter SaladGoat

    (@saladgoat)

    No. I copied the entire contents of the TwentyTen Theme folder to my hard drive.
    Any files I made changes to, I re-added only to the Child Theme folder on my server.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘child theme breaks with update!’ is closed to new replies.