Multisite favicon.ico

I hope you are using different theme in each site Just add this code in your header.php file. <link rel=”shortcut icon” href=”https://wordpress.stackexchange.com/questions/25736/<?php bloginfo(“stylesheet_directory’); ?>/favicon.ico” /> Add your favicon in each theme. For favicon in admin area. Add the following function in your function.php file. function admin_favicon() { ?> <link rel=”shortcut icon” href=”https://wordpress.stackexchange.com/questions/25736/<?php bloginfo(“stylesheet_directory’); ?>/favicon.ico” /> … Read more

Master Site for specific taxonomy in MultiSite

First when you register your custom taxonomy use the capabilities argument and define your custom capabilities: ‘capabilities’ => array( ‘manage_terms’ => ‘manage_cities’, ‘edit_terms’ => ‘edit_cities’, ‘delete_terms’ => ‘delete_cities’, ‘assign_terms’ => ‘assign_cities’ ), and only give your users the assign_terms capability this way they wont be able to create new terms, only YOU. Then use the … Read more

Subsite with different template, and content

The framework is not the problem. You just need to exclude your Consulting category from the loop each time you have it. Then use a custom template for the marketing page. Another option would be to set up a multi-site install and then use Consulting as its own blog. EDIT: To exclude the category try … Read more

Why does my multisite blog doesn’t show users?

Had the same problem. The issue was in wp_options table. Find line where option name is wp_user_roles and look what’s going on there. This line is responsible for user roles, and if they are an a mess, users canot be shown as well. Better copy option_value from the other table. (Change wp_ to your prefix).

Hide active themes on multisite subdomains

You could remove the ‘switch_themes’ capability from the ‘administrator’ role, which should prevent regular admins (as opposed to the network superadmin) from being able to switch their theme. Try this: add_action(‘admin_init’, ‘custom_remove_switch_themes_role_from_admins’); function custom_remove_switch_themes_role_from_admins(){ global $wp_roles; $wp_roles->remove_cap(‘administrator’, ‘switch_themes’); } EDIT: From a bit more extended testing with this above function, I noticed some issues when … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)