WordPress multisite network is a collection of sites that all share the same WordPress installation, themes and plugins. With multisite enabled, you can have as many websites as you want in your network. In this tutorial I am going to show you
- how enable the WordPress multisite manually on a fresh copy of WordPress installation.
- How To Install And enable a theme for multisite network.
- How To Install And Activate plugins for multisite network.
STEP 1: Enabling the multisite network in config.php.
- Login into your WordPress installation directory either through Cpanel or using an FTP client.
- Locate your config.php file and find the file that reads.
/* That's all, stop editing! Happy blogging. */
- Just above that line, paste the following line:
define( 'WP_ALLOW_MULTISITE', true );
- Then Save your wp-config.php file.
STEP 2: Setup Your Network
- Login to your WordPress site to set up the network.
- Navigate to Plugins > Installed Plugins and deactivate all plugins.
- Go to Tools > Network Setup.
- Choose whether you want to use subdomains or subdirectories. Example of a subdomain will be mysite.example.com and subdirectories will be example.com/my site.
- Give your network a title and enter your email address.
- Now click “Install.” to begin the installation.
STEP 3: Make to changes to your config.php and .htaccess files.
- After the installation you will be directed to enabling a network page.
- Open then config.php file in your site directory and and .htaccess files and edit them according to the instructions on the screen. If you can’t find your .htaccess file, it’s probably because it’s a hidden file so update your settings so you can view the file and edit it. If you don’t have an .htaccess file, simply create a new one.
- Save both files.
- You’ve now install wordPress multisite when you refresh your site, you’ll be prompted to log in.
- After you’ve logged in you’ll see the multisite dashboard instead of the regular WordPress dashboard.
You’ll notice a few small differences compared to the regular WordPress dashboard: there’s a “My Sites” link in the top right, which you can click to return to the network admin dashboard; there’s also a “My Sites” sub-menu item under “Dashboard,” which, when clicked, will display a list of sites in your network.
STEP 4: Now Lets add a new site to your multisite network.
- To add a new site to your multisite network:
- Click on My Sites > Network Admin > Sites, then click “Add New”.
- Alternatively, if you’re already in the Network Admin dashboard, you can click on “Sites” in the sidebar.
- Enter the site address you want for your new site, give it a title, choose a language, and enter an admin email.
- Click “Add Site” to create your sub-site.
- When you go to Sites > All Sites, you’ll see all of your sub-sites displayed.
STEP 5: Adding themes to the multisite network.
- Only users with super admin privileges can install themes and plugins and make them available for sub-sites.
- Go to My Sites > Network Admin > Themes and click “Add New”. Click “Upload Theme” to upload your own theme, or search for a free option on the “Add Themes” page.
- On the “Installing Theme” screen, click “Network Enable” to enable the theme for use on any sub-site in your network.
You can also enable themes on individual sub-sites. To do this:
- In the network admin, click on “Sites” and underneath the site you want to enable a theme for, click “Edit.”.
- Click the “Themes” tab and under the theme you want to enable, click the “Enable” link.
- When you go to the admin screen for the sub-site and click Appearance > Themes, you’ll see the theme you just enabled included in the list of themes available for activation.
STEP 6: Adding plugins to the multisite network.
- Go to My Sites > Network Admin > Plugins.
- Click “Add New” and install the plugin you want to use as you would on a regular WordPress installation.
- On the “Installing Plugin” screen, click “Network Activate.”
- The plugin will now run on all sites in your network, though admins for individual sites won’t have the ability to disable it.
If you want to activate a plugin for just one site, you can install the plugin as a network admin and then site admins can activate it on individual sub-sites. To do this:
- Follow steps 1 and 2 above to install the plugin you want to set up.
- On the “Installing Plugin” screen, click “Return to Plugin Installer.”
- Go to the admin dashboard for the site you want to activate the plugin for and click “Plugins” in the sidebar.
- Under the plugin you want to activate, click the “Activate” link.
It’s worth noting that on the “Plugins” screen for individual sub-sites, there’s only the option to activate or deactivate plugins — you can’t delete or update them as only super admins can carry out these actions.
Now you know how to enable the multisite network in WordPress, explore the settings and add more sites, themes and plugins.If you like this tutorial please don't go without sharing and please drop you comments below let me know how helpful this tutorial has been to you.