Support » Networking WordPress » Organize Themes on a multisite install

  • I have been scouring the net hoping for an answer – no joy!

    I am running a multisite network. I have two kinds of users – tech savvy and the not-so-tech-savvy. All of the themes I activate are available to all users(sites), but I want to be able to organize the themes into different categories to make it easier for users to choose the right theme for them.

    Any help with direction to a plugin or hooks/filters or whatever would be greatly appreciated!

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • At one point in the not so distant past we could not search through themes, at all, nevermind sorting them by tags. Searching by tags is still there, but the themes page does not show us a bunch of random checkboxes or drop downs like it used to.

    The hint for finding your “not-so-tech-savvy” themes may be there.

    So I offer the following:

    Add a keyword “not-so-tech-savvy” tag to the style.css of a couple of your not-so-tech-savvy themes, then go back to the themes page and see if you indeed can search and find your “not-so-tech-savvy” themes.

    If that works, note the url: /wp-admin/themes.php?search=not-so-tech-savvy

    Now if that’ll get you most of the way, then add a button or clickable link to the themes.php page or your own themes admin area with a plugin and away you go.

    Here’s a raw hastily assembled plugin that will add a submenu under themes, with an easy to read link to your “not-so-tech-savvy” themes:

    <?php
    add_action('admin_menu', 'ds_beginner_themes_menu');
    
    function ds_beginner_themes_menu() {
    	add_theme_page('Beginner Themes', 'Beginner Themes', 'edit_theme_options', 'beginner_themes', 'ds_beginner_themes');
    }
    
    function ds_beginner_themes() {
    	//search tags from style.css
    $term = 'not-so-tech-savvy';
    $link = admin_url('themes.php?search='.$term);
    
    	echo '<div class="wrap"><div id="icon-appearance" class="icon32"></div>';
    	echo '<h2>My Beginner Themes Page</h2>';
    	echo '<a href="'.$link.'">Beginner Themes</a>';
    	echo '</div>';
    	}
    ?>

    Or add the search terms straight to the appearance menu as a link and away you go:

    add_action('admin_menu', 'ds_beginner_themes_menu');
    
    function ds_beginner_themes_menu() {
       global $menu;
       global $submenu;
    
         	//search tags from style.css
    
    $term = 'not-so-tech-savvy';
    $submenu['themes.php'][95] = array( __( 'Beginner Themes' ), 'switch_themes', ('themes.php?search='.$term) );
    }
    
    add_action('admin_menu', 'ds_advanced_themes_menu');
    
    function ds_advanced_themes_menu() {
       global $menu;
       global $submenu;
    
         	//search tags from style.css
    
    $term = 'superduper';
    $submenu['themes.php'][94] = array( __( 'Advanced Themes' ), 'switch_themes', ('themes.php?search='.$term) );
    }
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Organize Themes on a multisite install’ is closed to new replies.