The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

sidebar.php (4 posts)

  1. jiHymas
    Posted 7 years ago #

    I just updated to 2.6.2 and wiped out sidebar.php with my "Author" information.

    Not the hardest thing in the world to fix, but annoying.

    Does anybody else think that hard-coding personalized information into theme programme files is craziness, or is it just me? Am I the only one who thinks this personalization should be, ideally, stored in the database or - if this is deemed to erode a desirable level of segmentation - stored in a data text file (like wp-config) in the theme directory?

    We're not talking about a theme prepared as a high-school computer science project here, we're talking about the official WordPress default theme!

  2. Chrisber
    Posted 7 years ago #

    Upgrading the core wordpress files should not have any effect on your theme. My entire sidebar is hard coded and it has survived multiple upgrades without a hitch.

  3. Dgold
    Posted 7 years ago #

    I don't think that's right Chrisber? Depends on what theme you're using and what you upload. New versions of WP are usually packed with the "default" theme. Unless you specifically avoid uploading it (unselect the wp-content folder before FTP'ing your new version), this will overwrite your old default theme.

    In some cases the new WP has an new-and-improved default theme, other times it's the same default you already had. Either way, if you FTP the entire contents of the new WP zip, you may overwrite your theme, if you use Default or Classic theme. Overwriting the theme WILL overwrite any changes you made in sidebar.php (again, obviously, only if Classic or Default aka Kubrick is the theme you use)

    If you already did this, and you're SURE that you don't need some fix that has been fixed in the Default theme, then you could just go to one of your backups (you have backups right?!), and upload your old sidebar.php into your theme folder.

    If you want to keep your old sidebar.php but also implement any changes WP put in the default theme, then you would need to research what those changes are and fix each change yourself. It's usually not much if anything.

  4. Chrisber
    Posted 7 years ago #

    I don't think that's right Chrisber? Depends on what theme you're using and what you upload.

    My bad. I wasn't thinking about the default theme.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.