• Resolved hzjoey

    (@hzjoey)


    When I change WP theme, my sidebar items will be changed too.
    I want these item(including Google adsense, statcounter, furl diggest, …..scripts) keep still,HOW?
    Or maybe there is a plugin?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You have to change your new theme (that you are switching) to show it just as the original theme (that you are switching from) has it.

    Each theme has it’s own stylesheet and it’s own sidebar.php file. If those aren’t the same then the layout and content won’t be the same.

    Make sense?

    Sorry guy, there is no easy way out. Whatever you have in the first theme will have to be manually inserted into the second theme.

    Actually, you CAN make your own sidebar template, and just call that for each theme you use. I can’t explain how to do that as while I know it can be done, I haven’t done it yet – I NEED to do it, since I use around 20 themes across 5 sites, and I always want the same stuff in the sidebars…. but I’m a procrastinator….

    If I get it sorted out before long, I’ll post back. But y’know, someone else will probably be along before that happens to tell you exactly how….

    http://www.semiologic.com/projects/sidebar-tile/

    Maybe that is what you’re looking for?? I haven’t tried it but it seems like you’d be able to just create one page with all your sidebar stuff and then make sure to replace the sidebar.php contents with the plugin function. That way you have one uniform sidebar content for all themes.

    Well, at least that’s how I *think* it works.

    Thread Starter hzjoey

    (@hzjoey)

    yeah, that’s a good plugin!
    But it won’t work in some theme (eg. WordPress Classic 1.5), just show the page’s name “sidebar”.
    Maybe change it manually is the best way to do…… -_-||

    Will that plug in work across themes? I’ve currently got 5 on the go and am looking to develop more and it is a massive pain whenever I decide to change just one thing in my sidebar…

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How can I keep sidebar items still while changing theme’ is closed to new replies.