Ready to get started?Download WordPress


What data will be lost without a child theme? (18 posts)

  1. mea777
    Posted 3 years ago #

    Hi there,

    I'm doing a site for someone and I've been learning so much about WP over the past week from nothing, it's great.

    I was told I need to create a child theme before making changes to my twenty ten theme. However I only found that out recently, after making quite a few changes to the theme, but only using the style.css page which i've added or changed rules to - I am avoiding touching the php files : So I've changed font and background colour/size, hidden meta tags, added an item to the navigation, and all pages have relevant text / images in them.

    My question is, if the client decided to hit 'update' one day, what exactly would happen ie which data would be lost? Does it mean all content in pages menu items etc will revert to the original, or would they only lose all style changes ?

    many thanks

  2. Root
    Posted 3 years ago #

    On a full update WP and the default theme are overridden. The data isnt touched. And nor are child or any other themes. If u need to go further than style css you can create a child function.php or new templates too.

  3. mea777
    Posted 3 years ago #

    Thanks Roots. my question though relates to the data that is lost if you don't work from a child theme - basically I feel i have changed the parent theme too much to go down the child route ?

  4. mea777
    Posted 3 years ago #

    Sorry Roots just re-read your reply . So..... If data isn't touched on update , what is ( as every one warns on every forum )? Many thanks

  5. Root
    Posted 3 years ago #

    Just hold on..........the data in mysql is never touched............but the default theme can/is over written, child themes are not for wimps, no pro touches the default, he copies it, renames it, activates it, then hacks it.
    And then he runs a child theme off that. A pro never loses his original theme, or does anything thats not reuseable...........

    Mysql data is never touched.

  6. mea777
    Posted 3 years ago #

    By the way, the template was used to create a basic website, no blogs no comments etc

    About your replies.....
    .the data in mysql is never touched
    I'm not too familiar with mysql, which data on the site would that refer to?

    but the default theme can/is over written
    Overwritten IN WHICH WAY? Does it revert to the basic twentyten theme, which data goes which data remains ?

    child themes are not for wHimps, no pro touches the default...
    Sounds a bit aggressive and patronising to me. And what is so difficult about Child themes that it isn't for 'whimps'.

    As I said I'm a beginner and aren't pretending I know better however I would appreciate more constructive comments. By the way, all data relating to the creator of the theme remain in the stylesheet. In terms of constructive comments, I would like to know, okay, say I created a child theme from the modified parent theme now, would my changes in my child theme be saved upon next update although i've made changes to the parent theme. Anyone? thanks a lot

  7. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    ANY change made to the twentyten theme would be lost. If you touched any code in that theme, anywhere it would be lost

  8. Root
    Posted 3 years ago #

    what i meant was
    a lot of people overlook the very great benefits of child themes and look down on them.......but we all swear by them..........
    and by data we mean data in mysql.the theme is not data, the css is not data

  9. mea777
    Posted 3 years ago #

    Okay.. Thanks . What can I do ? ( other than never updating !)
    Can i download the theme again while running the modified one , then create a child theme in a new folder then how do I transfer all the data to my new child theme , copy and paste the CSS and copy and paste page contents in the relevant areas ? Bear in mind I would like to stay away from php or database stuff in this process until I know what I'm doing..?

  10. Root
    Posted 3 years ago #

    sure.............do exactly what u just outlined........

  11. esmi
    Forum Moderator
    Posted 3 years ago #

    A child theme just stores your changes/customisation to the parent theme. Nothing else. Have a read of Child_Themes.

  12. mea777
    Posted 3 years ago #

    Thanks all, in terms of rectifying my approach, if I created a child theme from the parent theme i've modified and am currently working on , then activated the child theme and kept working from that, would my data be safe upon update?

  13. Root
    Posted 3 years ago #

    yes it will...............i am not nit picking but data is posts and stuff in the database - they will be safe
    plus yr theme edits will be safe too
    on an aggressive upgrade wp overwrites the default theme
    all other themes u have are untouched...........
    so we always keep the default untouched
    then we copy it
    then maybe copy that depending on what we are doing........
    in my first pass i fix the css the way i like it
    in my second if i alter templates i keep a changelog and comment heavily in the files
    its just about being organised
    not only are u safe from upgrades but bits of css / templates are reuseable.........

  14. mea777
    Posted 3 years ago #

    That is great news. I don't want to risk starting from scratch again from a 'virgin' theme, so I will create a child theme based on what i've done so far.

    Lesson learnt. Thanks very much all for your prompt help with this. ;0)

  15. Root
    Posted 3 years ago #

    good luck...........once yr done at the template level u can create further child themes just with a new style.css - it can use templates from another theme.its cool how it all fits together.............or u can use functions.php for theme specific php overrides and leave yr templates intact.......

  16. mea777
    Posted 3 years ago #

    ONe last quick question on BACKUP, sorry if this is off-topic.

    I know there are plugins for that but so far i've only used my FTP for this purpose, basically copying everything from the main directory onto my computer, all folders etc.

    However I've seen the TOOLS > export option on the admin panel. Does it do the same job? do I need to use this as well as the FTP backup method?

  17. Root
    Posted 3 years ago #

    backing up the theme is one thing
    backing up the mysql data is another
    incidentally if u develop yr wp blog locally using a server on yr own comp the theme is always backed up anyway
    for mysql back up there are plugins, but u can export from admin direct too......or go into phpmyadmin if u feel comfortable...........
    but it is a good thing to be doing very regularly.......

  18. mea777
    Posted 3 years ago #

    okay, just done an export, it's pretty much instant... Will have to figure out how to use it when needed but we'll see ! So much to learn, but so exciting lol ;o)
    Thanks Roots

Topic Closed

This topic has been closed to new replies.

About this Topic