Forums

The WordPress MU forums have moved to the MultiSite forum on WordPress.org

Quick Tip for Enabling All WPMU Themes (3 posts)

  1. bubjavier
    Member
    Posted 2 years ago #

    say you have hundreds of templates to enable all of them. you wouldn't want to click "yes" radio buttons over and over again for each every theme. I suggest to WPMU dev team to add a feature like "enable all themes" for this kind of scenarios.

    anyway, my workaround here is to use javascript + firebug, and also took advantage of having jQuery on it.

    to enable all:
    jQuery('input[id^=enabled]').each(function(){this.checked = true})

    and of course, to disable all:
    jQuery('input[id^=disabled]').each(function(){this.checked = true})

    you can run this via your firebug console. or you don't have firebug, you can run it directly to your browser's address bar using javascript: protocol and adding void(0) to the end.

    e.g.
    javascript:jQuery('input[id^=disabled]').each(function(){this.checked = true});void(0);

  2. andrea_r
    Moderator
    Posted 2 years ago #

    Or if you have a greasemonkey script to select all radio buttons.

    I *think* this was brought up before, and the consensus was no, as you really should give all themes a double-check before making them available sitewide.

  3. tdjcbe
    Member
    Posted 2 years ago #

    Every time I've read about someone turning on hundreds of themes at once, it's always been followed by "OMG! It broke my site! What do I do?"

Topic Closed

This topic has been closed to new replies.

About this Topic