WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Switching themes (20 posts)

  1. zep101
    Member
    Posted 2 years ago #

    I have created my website, can I switch to different theme templates to see what it looks like or will this mess things up?

    What about php files that have been modified?

  2. Jeremy Clark
    Moderator
    Posted 2 years ago #

    As long as you don't update or overwrite the theme with the modified files you can switch themes without any problems. For reference it's usually best to create a child theme for modifying themes: http://codex.wordpress.org/Child_Themes

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    can I switch to different theme templates to see what it looks like

    Yes you can.

    What about php files that have been modified?

    What .php files?

  4. zep101
    Member
    Posted 2 years ago #

    I have done some minor modifying in Apperance/Editor I guess that dosen't effect the theme template?

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    Well, the theme's template files will be .php, so yes - they are affected. But switching to another theme won't undo those changes.

  6. zep101
    Member
    Posted 2 years ago #

    So then it is safe to look at my website with different theme templates and if something is messed up I can just switch back?

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    Yes. The only way you could wipe out your changes is if you uploaded a fresh copy of the theme or upgraded it. This is why we recommend using a child theme for all of your customisations.

  8. zep101
    Member
    Posted 2 years ago #

    I read the Codex/Child Themes and I must say that I don't get it. I'm sure I am missing something like why would you do this? What is the benefit? Isn't this just duplication of everything? Or is it so that you maintain an untouched copy of the template?

    Sorry, I'm new...

  9. esmi
    Forum Moderator
    Posted 2 years ago #

    What is the benefit?

    You can upgrade the parent theme & have the benefit of any nice new features without wiping out any of your theme customisations.

    Isn't this just duplication of everything?

    Nope. The child theme only stores any customised files.

  10. zep101
    Member
    Posted 2 years ago #

    It sounds like this is something I should do but is it all complicated now that I have already customized some things?

    Let me ask you this, could I rename my present theme as a child (since I have already modified it)and download a fresh theme as the parent to achieve this?

  11. esmi
    Forum Moderator
    Posted 2 years ago #

    I think your best bet would be to rename your custom theme as a new standalone theme and then re-download a fresh copy of the original.

  12. zep101
    Member
    Posted 2 years ago #

    A new stand alone? or a child of a fresh copy of the original?

  13. esmi
    Forum Moderator
    Posted 2 years ago #

    A new stand alone.

  14. zep101
    Member
    Posted 2 years ago #

    Sorry I guess I am getting confused, if it is a stand alone and not a child of the original then isn't that basically what I have now? Then what would be the point?

  15. esmi
    Forum Moderator
    Posted 2 years ago #

    Right now, you have a customised copy of Twenty Ten which could be updated at any time - thereby wiping out all of your changes.

  16. zep101
    Member
    Posted 2 years ago #

    I am actually using Flexibility 3 Theme. But in your example for there to be a benefit wouldn't it need to be a parent child relationship to do the modifications in the child and not be wiped out by an update to the parent?

    Are themes updated at any time without warning or a chance to opt out?

  17. esmi
    Forum Moderator
    Posted 2 years ago #

    You cannot have a beneficial parent-child relationship unless you create a child theme from the start. Cloning an entire theme and calling it a child theme will offer zero benefit. Themes are updated manually but unlike machines, people have been known to make mistakes and accidentally update customised themes. At that point, there is nothing we can to to help them.

    So, if you do not want to start creating a proper child theme, the only other option available to safeguard your changes is to rename the theme as a new standalone. After all, what's the point of retaining the customised copy of Flexibility 3 since you can never update it?

  18. zep101
    Member
    Posted 2 years ago #

    So, if you do not want to start creating a proper child theme

    Isn't it already too late to make a proper child theme since I have already customized it?

  19. esmi
    Forum Moderator
    Posted 2 years ago #

    That's what I meant - unless of course you want to start all over again...

  20. zep101
    Member
    Posted 2 years ago #

    OK, well thank you very much for all your help I have learned a lot. Maybe I will start over again and save copies of my existing changes and just update those in a child. There are not very many.

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic