• Resolved karizma23

    (@karizma23)


    Hello,

    I’m running WP 2.6.3. I just upgraded today to 2.6.3 from 2.6.2. Prior to the upgrade today, I had made some small changes to the Sidebar.php template to change what was displayed in the Meta widget section. Specifically, I had customized that template to show only the following under the Meta section:

    Site Admin
    Login/Logout
    Contact Webmaster

    Now, since I performed the upgrade to 2.6.3, my Meta section on the Sidebar is showing the what seems to be new default links:

    Site Admin
    Login/Logout
    Entries RSS
    Comments RSS
    Wordpress.org

    The weird thing is that if I check the code in Sidebar.php, it still shows my previous code customizations. They’re just not taking effect any more for some reason.

    I’ve been hunting around in other templates, but I cannot find where these seemingly new links (Entries RSS, Comments RSS, WordPress.org) are coming from. I’m totally bewildered!

    If it makes a difference, I’m using the WordPress Default 1.6 by Michael Heilemann theme.

    Thanks everyone.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m not sure where you’re seeing that “it still shows your previous code customizations” but double-check because you might not be seeing that in the theme which is being loaded. Maybe you’re seeing that on your harddrive, backup, or something.

    Basically, when you Upgrade WP, you miiiiight overwrite the Default theme. To avoid this, don’t upload wp-content when you upload the upgraded WP. Or just go 1 file at a time and carefully avoid overwriting your modified Default.

    Better Approach: and this is what you should do for next time… Change the name of the Theme before you start modifying it. I think you must change the name in 2 places: the folder-name of the theme (change from ‘default’ to ‘my-theme-name’, and inside the style.css file near the top make the identical name change. After you change the name, go into your wp-admin > themes > select your personalized theme ‘my-theme-name’. Now you can hack it, and it won’t be overwritten when you upgrade.

    Thread Starter karizma23

    (@karizma23)

    I’m not sure where you’re seeing that “it still shows your previous code customizations” but double-check because you might not be seeing that in the theme which is being loaded. Maybe you’re seeing that on your harddrive, backup, or something.

    I am seeing in the template editor within my WP Dashboard. I click on the “sidebar.php” link in the editor and scroll down toward the bottom where the code in question is (where I edited it originally to make the changes I wanted) and the very same code I put in there is still there. The code has not been replaced with some new “default” code as I would have expected. So these new links on my Sidebar under the “Meta” section (widget) are coming from somewhere else.

    This has nothing to do with a local copy on my hard drive. This is definitely on the remote system hosting my WP blog. It’s visible through the Dashboard theme template editor.

    If it makes a difference, the upgrade from 2.6.2 to 2.6.3 was performed via the Automatic Upgrade plugin widely available on the WP plugin site.

    Ideas?

    Yeah, again, quite possibly (most likely) your site is NOT running the theme which you are looking at.

    I don’t know if you need to clear your cache, or if the Theme Editor area isn’t working, or if Child themes are coming into play, or what.

    You still need to follow the advice in my post above if you want to solve it and move forward. Make yourself a new theme, and make your changes there. If you’re doing it in the Default then you risk having it load some other version of the Default. If you want to change it, then change the theme name first and switch to your new theme name.

    I don’t use widgets on my site so I’m not very familiar with them, but when I was helping a friend with a site that uses widgets, I noticed that on his site the widgets override the sidebar.php. Could that be the problem? Have you edited the widget for the meta login info?

    Thread Starter karizma23

    (@karizma23)

    Ok, I have figured this out. Apparently when I upgraded WP to 2.6.3, the changes I made to the Meta widget were over-written (to default). To fix it, I downloaded via FTP the widgets.php file found in the wp-includes directory. Within that widgets.php file, there is a function called wp_widget_meta and within that function are the links in question that are showing up on my blog. I’ve edited those links to my liking, and all is right in the world again.

    On a separate note, the advice to create a custom theme based on the default is well-heeded and will be done. That way, future WP upgrades won’t keep causing this problem.

    Thanks all.

    Now that we’re in version 2.8, the code has been rearranged. So, now instead of looking for widgets.php, you need to look for default_widgets.php in the wp-includes directory, in order to modify the Meta widget.

    @karizma23, thanks for posting, so that I could fix the same issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changes made to “Meta” section in Sidebar template not displaying after upgrade.’ is closed to new replies.