WordPress.org

Ready to get started?Download WordPress

Forums

Reset theme customizer defaults (8 posts)

  1. David Gwyer
    Member
    Posted 1 year ago #

    If you have a set of color picker options defined in the theme customizer, it would be really handy to be able to reset them to the default color values (specified in the add_setting class method).

    Does anyone know of a way a button could be added to reset all theme customizer settings, or maybe on a section by section basis?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    I don't think the Customizer is mature enough for this yet. At least I've not come across any such functionality. It might be worth posting this as a bug/feature request in Trac on the grounds that the Customizer should really offer the same functionality that's available in Appearance -> Header.

  3. David Gwyer
    Member
    Posted 1 year ago #

    I can probably hack something together but wondered if there was a hook or something that I was missing that could be used to do this.

    Good idea about a trac ticket. Might give it a go.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    To be perfectly honest, I've been working off Otto's post on the Customizer. I've not had the chance to look through the core scripts myself.

  5. David Gwyer
    Member
    Posted 1 year ago #

    Yes me too. Otto gave a great introduction to using the theme customizer. Trouble is, it's so good it makes me want to do more! :)

  6. Mr. Vibe
    Member
    Posted 1 year ago #

    Damn! I guess I started too early..I am using WP Theme customizer in a theme and after 2 days of customizing the WP Theme customized, now only realized that it does not have a reset button. Any work around for this, I cant go back now..

  7. Andrew
    Forum Moderator
    Posted 1 year ago #

    As you're not contributing to the original poster and the thread you're replying to is considerably old, create your own thread on the issue.

  8. David Gwyer
    Member
    Posted 1 year ago #

    You will be pleased to know that a reset button is being added to WordPress 3.5. Check out the latest beta to play around with it.

    Here's a screen shot of the new color picker:

    http://core.trac.wordpress.org/attachment/ticket/21206/Screen%20Shot%202012-11-05%20at%2012.49.16%20PM.png

Topic Closed

This topic has been closed to new replies.

About this Topic