How To Update Modified Child Themes

Community Forums Forums General Discussion How To Update Modified Child Themes

This topic is: not resolved

This topic contains 7 replies, has 5 voices, and was last updated by  LocalSearch 6 months, 4 weeks ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #48732

    txsrdain
    Participant
    Post count: 2

    What is the best method/proactive for updating child themes to the most current and mobile responsive version (without overwriting and deleting any modifications made to a child theme functions file, css file, etc.)?

    #48750

    Doak Heggeness
    Participant
    Post count: 140

    What theme are we talking about?


    Doak Heggeness, WordPress Development | Website

    #48834

    txsrdain
    Participant
    Post count: 2

    Minimum, News and Enterprise are currently used.

    #48851

    Doak Heggeness
    Participant
    Post count: 140

    There is no silver bullet. I would….

    1) Backup your site.
    2) Open up both style.css files and go line by line and see if there are differences. Selectors may have been changed too. You cannot take your style.css from one and just copy it over to the other as there may have been changes.
    3) Any modifications you made to the original theme need to be added to the ‘media queries’ ( as they do not exist there ) section of the stylesheet to make it mobile responsive.


    Doak Heggeness, WordPress Development | Website

    #49187

    sokratesagogo
    Participant
    Post count: 34

    Move all your child theme modifications into a “core-functionality” plugin e.g. http://www.billerickson.net/core-functionality-plugin/


    “I toast, therefore I am”

    #49194

    nickthegeek
    Keymaster
    Post count: 751

    child themes aren’t really intended to be updated. For example, lets say you made a custom Minimum 1.0 theme and saw Minimum 2.0 then wanted to update. If you do this your customizations will be lost. Even if you use a core functionality plugin the CSS and some of the functions won’t be relevant. This is because the home page markup is pretty dramatically different and the way the CSS works in Minimum 1.0 is dramatically different from 2.0.

    It is best to think of them as two different child themes. You can apply your customizations manually but not automatically.

    That said, a core functions plugin is a great idea. I like to ask myself which code should be available in all themes then put that into a plugin. Code for custom fields, posts types, and stuff like that belongs in a core functions plugin. Template files, widget areas, and things like that are usually theme specific. There are times when there are templates and widget areas associated with those that will apply to any Genesis child theme, I pull those into a second plugin that loads on a genesis_init hook so if the client switches to a non Genesis theme the site doesn’t break.

    #49202

    sokratesagogo
    Participant
    Post count: 34

    Thanks Nick :)


    “I toast, therefore I am”

    #93543

    LocalSearch
    Participant
    Post count: 1

    So, being a non-coder…

    …if there’s enough reason/benefit for Studiopress to release an official updated child theme…yet, there’s no built in way of installing the new child theme version on top of the old version (like WP updates) without losing any customizations…

    …and “It is best to think of them as two different child themes”…

    Why not just make the new child theme file name (e.g. agency-pro301.zip vs agency-pro300.zip) entirely different than the predecessor…so it can be installed along side the predecessor…so we can activate/switch back and forth between the separate child theme versions…to accommodate the process of making customizations to the new version?

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.