WordPress.org

Ready to get started?Download WordPress

Forums

[Pixeled theme] Updates (4 posts)

  1. brihan
    Member
    Posted 4 years ago #

    Hi,
    I'm about to get into customiing the pixeled theme heavily for my site. I would like to be able to update the theme when updates are available in the future though. If I click on the "Update automatically" link it wipes all the customizations I've done.

    Is there a place where the changes to the pixeled theme are logged. If it's just a few lines of code in a couple of the files, it would be better if I could just copy and paste them in manually. I'd prefer not to have to download the updated theme, and comb through it manually looking for changes.

    Thanks.

  2. equaldesign
    Member
    Posted 4 years ago #

    Why don't you create a new theme for your changes and set it as a child theme of the pixeled theme.

    What this means is that your theme will use code from the Pixel them unless it finds it in your theme. For example lets say you don't want to customize the single.php theme so you don't create one on your theme, it will use the single.php from the pixeled theme. However lets say you want to customize the header.php file then if you include one in your theme it will use that rather than the one in the pixeled theme.

    This way when you update the pixeled theme all your changes stay in place,

    Check out this link on how to create a theme as a child theme of another.

    http://codex.wordpress.org/Theme_Development#Theme_Style_Sheet

  3. brihan
    Member
    Posted 4 years ago #

    Thanks, I'll look into that. I skimmed it earlier, and I guessed that adding some conditional tags to the parent theme (if this file exist in the child use that instead) is what you meant. Am I right? If so, thn I'd just have to copy those tags into the theme after upgrading each time and I'd be set wouldnt I.

  4. equaldesign
    Member
    Posted 4 years ago #

    You should not need any conditional tags. Download the pixeled theme and activate it. Then make another theme which has the template or parent of the pixeled theme. Activate the new theme. As it is blank at the moment and doesn't have any files WordPress will use all the files from the Pixeled theme.

    Now start making your changes but make them in your new child theme. For example if you want to edit the index.php file copy the one from the pixeled theme into the child theme and then start editing. WordPress will then use this index.php from the child theme rather than the one from the pixeled theme although it will use all other files from the pixeled theme as they don't exist in the child theme.

    And so on.....

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags