Forums

Changing themes will loose widgets arrangements for previous theme (6 posts)

  1. noixdarec
    Member
    Posted 6 months ago #

    Every time I change the theme the widgets area is reset. It is understandable since every theme doesn't have same widget area. But could WordPress just remember the widget settings per theme? When I switch back to a used theme, it won't remember what widgets were associated with it so I have to put them back one by one from the "Inactive Widgets" stock.

    Sorry this is asked several times before but the previous related topics are all closed and the problem is still there...
    This is quite annoying and I've waiting for longtime for the update.

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    Not right now, because all themes use the same wp_options setting for widgets. There's no real theme 'deactivation' which would allow you to back those up, and unlike Plugins, these options are essentially 'reused'. It's working as designed right now.

  3. fonglh
    Member
    Posted 6 months ago #

    Would it be a good idea to have theme specific options, perhaps by prepending the theme slug onto the option name?

  4. noixdarec
    Member
    Posted 6 months ago #

    Thanks Ipstenu, got it. hope that would be considered as a todo.

  5. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    noixdarec - It's in Trac I believe, but flagged 'future'.

    fonglh - I think they are flagged that way, which is why you lose them between theme changes. I remember listening to folks chat about this, and how annoying weird and complex it was.

    Personally I'm thrilled they save 'em in inactive! I remember when they were just GONE!

  6. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

Reply

You must log in to post.

About this Topic