How to Fix 503 Service Unavailable Error in WordPress

Are you seeing a 503 service unavailable error in WordPress? The problem with the 503 error is that it gives no clues about what’s causing it which makes it extremely frustrating for beginners. In this article, we will show you how to fix the 503… Read More »

The post How to Fix 503 Service Unavailable Error in WordPress appeared first on WPBeginner.

Are you seeing a 503 service unavailable error in WordPress? The problem with the 503 error is that it gives no clues about what’s causing it which makes it extremely frustrating for beginners. In this article, we will show you how to fix the 503 service unavailable error in WordPress.

Fixing 503 service unavailable error in WordPress

What Causes 503 Service Unavailable Error in WordPress?

All WordPress hosting companies offer fixed amount of resources for each hosting account. For websites on shared hosting, this limit cannot handle heavy usage of server resources.

The 503 service unavailable error occurs when your web server is unable to get a proper response from a PHP script. This PHP script could be a WordPress plugin, a theme, or a misbehaving custom code snippet.

If the error is caused by heavy usage, a server glitch, or a DDoS attack, then it could automatically disappear in a few minutes.

However, if it is caused by bad code on your website, then it will keep occurring unless you find and disable the code that’s causing it.

That being said, let’s take a look at how to easily fix 503 service unavailable error in WordPress.

Fixing 503 Service Unavailable Error in WordPress

As we mentioned above that this error is caused when your web server is unable to get a proper response from a PHP script running in the background.

To fix it, we will disable all unnecessary PHP scripts one by one until the error is resolved.

Let’s get started.

Deactivate All WordPress Plugins

All your WordPress plugins are PHP scripts, so first you need to deactivate all your WordPress plugins.

Since you cannot login to your WordPress dashboard due to the 503 error, you will need to connect to your website using a FTP client or File Manager in cPanel. Once connected, go to /wp-content/ folder and rename the plugins folder to plugins-old.

Rename plugins folder

Next, you need to create a new folder and name it plugins.

Now you need to visit your WordPress site to see if this resolved the error.

If it did, then this means a plugin installed on your website was causing the error. The above steps have deactivated all WordPress plugins.

To figure out which plugin was causing the issue, you need to switch back to your FTP client or file manager in cPanel. Next, you need to go to /wp-content/ folder and delete the empty plugins folder.

Delete empty plugins folder

After that you need to rename the plugins-old folder to plugins. This will make all your previously installed plugins available to WordPress. However, these plugins will remain deactivated.

You need to visit the WordPress admin area and then go to the plugins page. You can activate your plugins one by one and visit different pages on your website after activating each plugin. Keep doing that until you find the plugin causing the 503 error.

If this step resolved your issue, then you don’t need to follow rest of the instructions on this page. Otherwise, you can move on to the next step.

Switch to a Default WordPress Theme

If deactivating plugins didn’t resolve the issue, then the next step would be to switch to a default WordPress theme. This will deactivate your current WordPress theme.

First, you need to connect to your WordPress site using an FTP client or File Manager in cPanel. Once connected, go to /wp-content/themes/ folder.

Download your current WordPress theme

Locate your currently active WordPress theme and download it to your computer as backup.

After downloading your theme, you can go ahead and delete it from your website

Now, if you already have a default theme like Twenty Seventeen or Twenty Sixteen installed, then it will be automatically activated. If you don’t, then you can go ahead and install a default theme on your website.

Thoroughly check your website to make sure that 503 service unavailable error is resolved.

Troubleshooting

If both methods fail to resolve the error, then you can take the following steps:

  • Contact your WordPress hosting company because they may be able to pin-point what’s causing the issue.
  • As a last resort, you can reinstall WordPress with a fresh copy.

We hope this article helped you learn how to fix 503 service unavailable error in WordPress. You may also want to see our ultimate list of the most common WordPress errors and how to fix them.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Fix 503 Service Unavailable Error in WordPress appeared first on WPBeginner.

How to Fix 503 Service Unavailable Error in WordPress

Are you seeing a 503 service unavailable error in WordPress? The problem with the 503 error is that it gives no clues about what’s causing it which makes it extremely frustrating for beginners. In this article, we will show you how to fix the 503… Read More »

The post How to Fix 503 Service Unavailable Error in WordPress appeared first on WPBeginner.

Are you seeing a 503 service unavailable error in WordPress? The problem with the 503 error is that it gives no clues about what’s causing it which makes it extremely frustrating for beginners. In this article, we will show you how to fix the 503 service unavailable error in WordPress.

Fixing 503 service unavailable error in WordPress

What Causes 503 Service Unavailable Error in WordPress?

All WordPress hosting companies offer fixed amount of resources for each hosting account. For websites on shared hosting, this limit cannot handle heavy usage of server resources.

The 503 service unavailable error occurs when your web server is unable to get a proper response from a PHP script. This PHP script could be a WordPress plugin, a theme, or a misbehaving custom code snippet.

If the error is caused by heavy usage, a server glitch, or a DDoS attack, then it could automatically disappear in a few minutes.

However, if it is caused by bad code on your website, then it will keep occurring unless you find and disable the code that’s causing it.

That being said, let’s take a look at how to easily fix 503 service unavailable error in WordPress.

Fixing 503 Service Unavailable Error in WordPress

As we mentioned above that this error is caused when your web server is unable to get a proper response from a PHP script running in the background.

To fix it, we will disable all unnecessary PHP scripts one by one until the error is resolved.

Let’s get started.

Deactivate All WordPress Plugins

All your WordPress plugins are PHP scripts, so first you need to deactivate all your WordPress plugins.

Since you cannot login to your WordPress dashboard due to the 503 error, you will need to connect to your website using a FTP client or File Manager in cPanel. Once connected, go to /wp-content/ folder and rename the plugins folder to plugins-old.

Rename plugins folder

Next, you need to create a new folder and name it plugins.

Now you need to visit your WordPress site to see if this resolved the error.

If it did, then this means a plugin installed on your website was causing the error. The above steps have deactivated all WordPress plugins.

To figure out which plugin was causing the issue, you need to switch back to your FTP client or file manager in cPanel. Next, you need to go to /wp-content/ folder and delete the empty plugins folder.

Delete empty plugins folder

After that you need to rename the plugins-old folder to plugins. This will make all your previously installed plugins available to WordPress. However, these plugins will remain deactivated.

You need to visit the WordPress admin area and then go to the plugins page. You can activate your plugins one by one and visit different pages on your website after activating each plugin. Keep doing that until you find the plugin causing the 503 error.

If this step resolved your issue, then you don’t need to follow rest of the instructions on this page. Otherwise, you can move on to the next step.

Switch to a Default WordPress Theme

If deactivating plugins didn’t resolve the issue, then the next step would be to switch to a default WordPress theme. This will deactivate your current WordPress theme.

First, you need to connect to your WordPress site using an FTP client or File Manager in cPanel. Once connected, go to /wp-content/themes/ folder.

Download your current WordPress theme

Locate your currently active WordPress theme and download it to your computer as backup.

After downloading your theme, you can go ahead and delete it from your website

Now, if you already have a default theme like Twenty Seventeen or Twenty Sixteen installed, then it will be automatically activated. If you don’t, then you can go ahead and install a default theme on your website.

Thoroughly check your website to make sure that 503 service unavailable error is resolved.

Troubleshooting

If both methods fail to resolve the error, then you can take the following steps:

  • Contact your WordPress hosting company because they may be able to pin-point what’s causing the issue.
  • As a last resort, you can reinstall WordPress with a fresh copy.

We hope this article helped you learn how to fix 503 service unavailable error in WordPress. You may also want to see our ultimate list of the most common WordPress errors and how to fix them.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Fix 503 Service Unavailable Error in WordPress appeared first on WPBeginner.

How to Duplicate WordPress Database using phpMyAdmin

Do you want to duplicate your WordPress database using phpMyAdmin? WordPress stores all your website data in a MySQL database. Sometimes you may need to quickly clone a WordPress database to transfer a website or to create manual backups. In this article, we will show… Read More »

The post How to Duplicate WordPress Database using phpMyAdmin appeared first on WPBeginner.

Do you want to duplicate your WordPress database using phpMyAdmin? WordPress stores all your website data in a MySQL database. Sometimes you may need to quickly clone a WordPress database to transfer a website or to create manual backups. In this article, we will show you how to easily duplicate WordPress database using phpMyAdmin.

duplicate or clone WordPress database using phpMyAdmin

Why Use phpMyAdmin to Duplicate WordPress Database

WordPress stores all your website content in the database. Almost all WordPress hosting companies offer MySQL as your database management software. You can interact with MySQL using command line tools, but that is not ideal for beginners.

PhpMyAdmin offers a web based interface to manage your MySQL database. It can be used to manually backup your WordPress database, restore admin password, or move your website to new server.

You can learn more about it in our guide on how to manage WordPress database with phpMyAdmin.

That being said, let’s take a look at how to duplicate WordPress database using phpMyAdmin.

Duplicate / Clone WordPress Database using phpMyAdmin

First, you need to visit the cPanel dashboard of your hosting account. Once logged in, scroll down to the Databases section and click on the phpMyAdmin icon.

phpMyAdmin icon in cPanel

Don’t worry if your cPanel dashboard looks a little different than our screenshots, or if your hosting company doesn’t have a cPanel dashboard. You just need to locate the databases section, and you’ll find the option to open phpMyAdmin.

This will take you to the phpMyAdmin interface where you need to click on the Databases link on the top to continue.

Select your WordPress database

On this screen, you will see a list of databases available. You need to click on your WordPress database from the list.

Next, you’ll see the list of tables in your WordPress database. Click on the ‘Operations’ link from the top menu to continue.

Database operations in my phpmyadmin

Now, you need to provide a name for the new duplicate database under the ‘Copy database to’ box. Make sure the ‘Structure and Data’ option is selected and then click on the Go button.

Copy database

PhpMyAdmin will now create a duplicate WordPress database for you. Once finished, you will see a success message.

After that you can click on ‘Databases’ link on the top to view your newly created duplicate database.

Manually Duplicate WordPress Database using phpMyAdmin

If you are on a shared WordPress hosting, then it is likely that your hosting company does not allow users to create databases directly from phpMyAdmin.

In that case, you will not be able to see the ‘Copy database to’ box on the operations page.

However, you can still export the existing database and then import it into a new database. To do that, visit the phpMyAdmin in your cPanel dashboard.

After selecting your WordPress database, click on the export button on the top menu and then select custom method.

Export database using phpMyAdmin

Now you need to scroll to the output section and check the ‘Save output to a file’ option.

Output settings

Click on the ‘Go’ button to continue.

phpMyAdmin will now export your WordPress database and send it to your browser as a .mysql file.

Next, you need to create a new database where you can import this file. Visit the cPanel dashboard and click on ‘MySQL Databases’ icon.

MySQL databases in cPanel

On the next screen, enter a name for your new database and click on ‘Create database’ button to continue.

New database

Cpanel will now create a new MySQL database. However, in order to use the database you need to assign it to a MySQL user.

Scroll down to ‘Add user to database’ section and select your MySQL username and then select your newly created database.

Add user to database

After that, click on the Add button to continue.

Cpanel will now grant the MySQL user full privileges on your newly created database.

Now that your new database is ready, you can go ahead and open phpMyAdmin from your cPanel dashboard.

You need to select your newly created database and then click on the import button from top menu.

Import database

Next, click on the choose file button to select the .mysql file you downloaded earlier and click on the Go button to continue.

PhpMyAdmin will now upload the file from your computer and import your database. You will see a success message upon completion.

Successfully imported WordPress database

We hope this article helped you learn how to duplicate WordPress database using phpMyAdmin. If you’re looking for a more efficient way to backup and manage your website, then check out our list of the best WordPress backup plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Duplicate WordPress Database using phpMyAdmin appeared first on WPBeginner.

How to Create and Add Cinemagraphs in WordPress

Do you want to learn how to create and add Cinemagraphs in your WordPress posts? Cinemagraphs are images with one part or area moving while rest of the image stays still. These images are highly engaging and add an storytelling element to your articles. In… Read More »

The post How to Create and Add Cinemagraphs in WordPress appeared first on WPBeginner.

Do you want to learn how to create and add Cinemagraphs in your WordPress posts? Cinemagraphs are images with one part or area moving while rest of the image stays still. These images are highly engaging and add an storytelling element to your articles. In this article, we will show you how to easily create and add cinemagraphs in WordPress.

Creating cinemagraphs for your WordPress site

What are Cinemagraphs?

Cinemagraphs are typically GIF images where a small part of the image is moving while rest of it remains still. They look very cinematic hence the name cinemagraphs.

Cinemagraph preview

They add a storytelling element to images which makes them look more engaging. They are particularly useful when accompanying longform content, podcast episode, or an audio story.

Creating cinemagraphs is a bit different than regular GIFs. However if you have the right tools, then with little effort and some practice you’ll be able to create stunning cinemagraphs from your own videos.

That being said, let’s take a look at how to easily create and add cinemagraphs in WordPress.

Creating Cinemagraphs from Videos

To get started, you’ll need the following items:

  1. A small video clip that you want to convert into a cinemagraph
  2. Adobe Photoshop
  3. Your time, patience, and creativity

Let’s get started.

First you need to get your video ready. You can use a video editing tool like iMovie to trim the video to just the bare minimal clip that you need for the cinemagraph.

Next, you need to open Photoshop and import your video into layers by clicking on the File » Import » Video Frames to Layers menu.

Import your video into layers

Select your video and then click on the OK button to continue. Depending on your video size, it may take a little while to be fully imported.

Video to layers import

Once your video is imported, you will see video frames as layers under the layers panel.

Layers imported from video

Now you need to select all the layers except for the very first layer (Layer 1).

Go to Layer » New » Group From Layers menu or press Command + G (CTRL+G on Windows) to add layers into a group.

Grouped layers

Next, you need to select the group and go to Layer » Layer Mask » Reveal All to add a mask to the group.

Reveal all

After adding the mask, press Command + I (Ctrl + I on Windows) keys to invert the color of the mask.

Now set the foreground color to white and then click on the brush tool. You need to use the brush tool to highlight the area you want to show in the loop.

Brush the moving parts to highlight them

After that, go to Window » Timeline to open all your layers in an animation format.

You will notice all frames appear transparent in the timeline except for the first frame.

Timeline

To change that, select the first layer (Layer 1) in the layers panel and click on the Unfiy Layer Visibility icon and then press the Match button.

Unify visibility

Next, click on the toggle icon of the Timeline and select all frames. After that click on the toggle button again to choose Copy Frames.

Copy frames

After copying the frames, click on the toggle button and select ‘Paste Frames’ option.

You will be asked to choose a paste method. Select ‘Paste After Selection’ and press the OK button.

Paste after selection

Next, you need to click on the Timeline toggle icon once more and select the ‘Reverse Frames’ option.

Reverse frames

Your cinemagraph animation is almost ready.

To save it on your computer, go to File » Save for Web option. This will bring up a popup where you need to select GIF format and click on the save button.

Save as GIF

That’s all your Cinematograph is ready.

You can add it to your site like you would add any other GIFs in WordPress. Simply edit the post or page where you want to add the cinemagraph and click on the add media button.

Upload your cinemagraph GIF in WordPress

This will bring up the media uploader popup, click on the select files button to upload the GIF file from your computer.

Once uploaded click on the ‘Insert into post’ button to continue.

You will now see the image in your WordPress post editor.

Don’t forget to save or update the post. You can now click on the preview button to see the cinemagraph in action. Here is the cinemagraph we created during this tutorial.

Cinemagraph example

We hope this article helped you learn how to create and add cinemagraphs in WordPress. You may also want to see our list of websites offering free royalty free images for WordPress users.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Create and Add Cinemagraphs in WordPress appeared first on WPBeginner.

How to Add the WordPress Logout Link to Navigation Menu?

Do you want to manually add a WordPress logout link on your site? If you run a WordPress membership site, then having a prominent logout link is helpful for your users. In this article, we will share the direct path to WordPress logout link, and… Read More »

The post How to Add the WordPress Logout Link to Navigation Menu? appeared first on WPBeginner.

Do you want to manually add a WordPress logout link on your site? If you run a WordPress membership site, then having a prominent logout link is helpful for your users. In this article, we will share the direct path to WordPress logout link, and how you can add the logout link in your WordPress menu as well as other areas of your site.

Link to logout of WordPress

The Logout Link for WordPress

Normally you can log out of your WordPress site by clicking on the logout link. This link is located below your profile picture in the top right corner of the WordPress admin bar.

All you have to do is take your mouse over to your username, and it will appear in the dropdown menu.

Log out link in WordPress admin bar

In case you or your site administrator have disabled the WordPress admin bar, then you will not be able to see the WordPress logout link.

The good thing is that the WordPress logout link can be directly accessed to log out of your current WordPress session.

The logout link for your WordPress site looks like this:

http://example.com/wp-login.php?action=logout

Don’t forget to replace example.com with your own domain name.

You can access this link directly in your browser window to log out of your WordPress site.

When you visit the WordPress logout link, it will take you to a warning page. You will need to click on the log out link to confirm that you really want to log out.

Logout confirmation

You can also manually add this logout link anywhere on your WordPress site. Let’s take a look at how to do that.

Adding the Logout Link in WordPress Navigation Menus

Adding the WordPress logout link in your site’s navigation menu will make it easily accessible from any page on your website.

Simply head over to the Appearance » Menus page in your WordPress admin. After that, you need to click on the custom links tab to expand it and the the logout link in the URL field.

Logout link in navigation menu

Once you are done, click on the ‘Add to menu’ button, and you will notice the link appear in the right column. You can adjust its position by simply dragging it up or down.

Don’t forget to click on the ‘Save Menu’ button to store your changes.

You can now visit your website to see the logout link in your navigation menu.

Logout link in the navigation menu

The problem with adding the logout link in menu is that it is visible to all users (both logged-in and logged-out). It only makes sense to show the logout link to users who are actually logged in.

You can do that by following our instructions on how to show different menus to logged in users.

Add WordPress Logout Link in the Sidebar Widget

WordPress comes with a default widget called Meta. This widget shows a bunch of useful links including a logout or login link to users.

Meta widget in WordPress

Some people find the other links in the Meta widget are not quite as useful.

As an alternate, you can also add a plain text or custom HTML widget with the logout link in plain HTML. Here is the HTML code you’ll need to add:

<a href="http://example.com/wp-login.php?action=logout">Logout</a>

Logout HTML widget

That’s all for now.

We hope this article helped you find the direct WordPress logout link and add it on your navigation menu. You may also want to see our ultimate step by step WordPress security guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add the WordPress Logout Link to Navigation Menu? appeared first on WPBeginner.

How to Add Rotating Testimonials in WordPress

Do you want to display rotating testimonials on your WordPress site? Testimonials are a great way to show social proof and build credibility. That’s why you see so many online businesses proudly displaying customer testimonials on their websites. In this article, we will show you… Read More »

The post How to Add Rotating Testimonials in WordPress appeared first on WPBeginner.

Do you want to display rotating testimonials on your WordPress site? Testimonials are a great way to show social proof and build credibility. That’s why you see so many online businesses proudly displaying customer testimonials on their websites. In this article, we will show you to how to easily add rotating testimonials in WordPress.

Adding rotating testimonials in WordPress

Adding Rotating Testimonials Slider in WordPress

First thing you need to do is install and activate the Testimonial Rotator plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Testimonials » Add Rotator page. This is where you’ll setup the carousel that will display rotating testimonials on your website.

Create your testimonials rotator

You can select how you want your testimonials carousel to behave. You can choose animation, duration for each testimonial, show/hide items, and more.

After that you need to enter the company or product that these testimonials are associated with. This information will not be displayed but will be used to add rich snippets meta data for search engines.

Lastly, you can select a theme for your carousel. By default, the plugin comes with two themes to choose from. You can purchase additional themes from the plugin author if you like.

Once you are finished, click on the publish button to save your changes.

Now that you have created the carousel, it is time to add testimonials. You can add testimonials by going to Testimonials » Add New page in your WordPress admin area.

Add testimonial

You need to add the client name in the title field, and their testimonial in the post editor.

Next, you need to scroll down to the ‘Testimonials Options’ section.

Testimonial options

You can add the testimonial to the rotator you created earlier. After that, you can select a star rating, client’s job title or company, and add client photo.

Once you are done, click on the publish button to save the testimonial. Repeat the process to add more client testimonials.

After you have added a few testimonials, you are ready to add them to your WordPress site.

Head over to the Testimonials » All Rotators page and copy the ‘User rotator settings’ shortcode next to the rotator you created earlier.

Rotating testimonials shortcode

You can add this shortcode to any WordPress post or page to display customer testimonials. You can also add it to a sidebar widget, see our guide on how to add shortcode in sidebar widget.

You can now visit your website to see your rotating testimonial in action.

Testimonials preview

We hope this article helped you learn how to add rotating testimonials in WordPress. You may also want to see our ultimate step by step WordPress SEO guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Rotating Testimonials in WordPress appeared first on WPBeginner.

How to Create a WordPress Intranet for Your Organization

Do you want to create a WordPress intranet for your organization? WordPress is a powerful platform with tons of flexible options that makes it ideal to be used as your company’s intranet. In this article, we will show you how to create a WordPress intranet… Read More »

The post How to Create a WordPress Intranet for Your Organization appeared first on WPBeginner.

Do you want to create a WordPress intranet for your organization? WordPress is a powerful platform with tons of flexible options that makes it ideal to be used as your company’s intranet. In this article, we will show you how to create a WordPress intranet for your organization while keeping it private and secure.

Creating a WordPress intranet for your organization

What is Intranet or Extranet? Why Use WordPress as Your Intranet Platform?

Intranet or Extranet is a communications platform used by an organization for communication, file sharing, announcements, and other organizational activities.

WordPress is an excellent platform to build your organization’s intranet or extranet. It is easy to maintain, open source, and gives you access to thousands of WordPress plugins to add new features when needed.

An intranet runs on an organization’s private network. Typically, an office IT system is connected via cable or wireless network adapters. One computer on the network can be used as the web server and host a WordPress website.

Follow the instructions in our guide on how to install WordPress on a Windows network using WAMP or install WordPress on a Mac computer using MAMP to start your WordPress intranet.

On the other hand, an extranet is an intranet platform accessible to a larger network or public internet. In plain English, this could be a website publicly accessible but restricted to authorized users only.

It is particularly useful if your organization is distributed across different geographic locations.

To create your WordPress extranet, you’ll need a WordPress hosting account and a domain name. After that, you can install WordPress and then set it up to be used as your organization’s intranet.

Once you have installed WordPress as your intranet, the next step is to convert it into a communications hub for your organization.

To do that, you’ll be using several WordPress plugins. We will show you the basic setup that will serve as the foundation for your WordPress intranet to grow and meet your organization’s goals.

Setting Up BuddyPress as Your WordPress Intranet Hub

BuddyPress is a sister project of WordPress. It converts your WordPress website into a social network. Here are some of the things a BuddyPress powered intranet can do:

  • You will be able to invite users to register on company intranet
  • Users will be able to create extended user profiles
  • Activity streams allow users to follow latest updates like Twitter or Facebook
  • You will be able to create user groups to sort users into departments or teams
  • Users can follow each other as friends
  • Users can send private messages to each other
  • You can add new features by adding third-party plugins
  • You’ll have plenty of design options with WordPress themes for BuddyPress

To get started, first you will need to install and activate BuddyPress plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, head over to Settings » BuddyPress page to configure plugin settings.

BuddyPress settings

For complete step by step instructions see our guide on how to turn WordPress into a social network with BuddyPress.

Secure Your WordPress Intranet with All-in-One Intranet

If you are running a WordPress intranet on local server, then you can secure it by limiting access to internal IPs in your .htaccess file.

However, if you are running an Extranet, then your users may be accessing the intranet from different networks and IP addresses.

To make sure that only authorized users get access to your company intranet, you need to make your extranet private and accessible to only registered users.

For that, you’ll need to install and activate the All-in-One Intranet plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, head over to Settings » All-in-One Intranet page to configure the plugin settings.

All in One Intranet settings

First you need to check the box next to ‘Force site to be entirely private’ option. This will make all pages of your WordPress site completely private.

The only thing this plugin will not make private is the files in your uploads directory. Don’t worry, we will show you how to protect it later in this article.

Next, you need to provide a URL where you want users to be redirected when they are logged in. This could be any page on your intranet.

Lastly, you can automatically logout inactive users after a certain number of minutes.

Don’t forget to click on the save changes button to store your settings.

Securing Media Uploads on your WordPress Intranet

Making your website completely private doesn’t affect media files. If someone knows the exact URL of a file, then they can access it without any restriction.

Let’s change that.

For better protection, we will be redirecting all requests made to the uploads folder to a simple PHP script.

This php script will check if a user is logged in. If they are, then it will serve the file. Otherwise, the user will be redirected to the login page.

First you need to create a new file on your computer using a plain text editor like Notepad. After that you need to copy and paste the following code and save the file as download-file.php on your desktop.

<?php
require_once('wp-load.php');

is_user_logged_in() ||  auth_redirect();

list($basedir) = array_values(array_intersect_key(wp_upload_dir(), array('basedir' => 1)))+array(NULL);

$file =  rtrim($basedir,'/').'/'.str_replace('..', '', isset($_GET[ 'file' ])?$_GET[ 'file' ]:'');
if (!$basedir || !is_file($file)) {
	status_header(404);
	die('404 — File not found.');
}

$mime = wp_check_filetype($file);
if( false === $mime[ 'type' ] && function_exists( 'mime_content_type' ) )
	$mime[ 'type' ] = mime_content_type( $file );

if( $mime[ 'type' ] )
	$mimetype = $mime[ 'type' ];
else
	$mimetype = 'image/' . substr( $file, strrpos( $file, '.' ) + 1 );

header( 'Content-Type: ' . $mimetype ); // always send this
if ( false === strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS' ) )
	header( 'Content-Length: ' . filesize( $file ) );

$last_modified = gmdate( 'D, d M Y H:i:s', filemtime( $file ) );
$etag = '"' . md5( $last_modified ) . '"';
header( "Last-Modified: $last_modified GMT" );
header( 'ETag: ' . $etag );
header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + 100000000 ) . ' GMT' );

// Support for Conditional GET
$client_etag = isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ? stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) : false;

if( ! isset( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) )
	$_SERVER['HTTP_IF_MODIFIED_SINCE'] = false;

$client_last_modified = trim( $_SERVER['HTTP_IF_MODIFIED_SINCE'] );
// If string is empty, return 0. If not, attempt to parse into a timestamp
$client_modified_timestamp = $client_last_modified ? strtotime( $client_last_modified ) : 0;

// Make a timestamp for our most recent modification...
$modified_timestamp = strtotime($last_modified);

if ( ( $client_last_modified && $client_etag )
	? ( ( $client_modified_timestamp >= $modified_timestamp) && ( $client_etag == $etag ) )
	: ( ( $client_modified_timestamp >= $modified_timestamp) || ( $client_etag == $etag ) )
	) {
	status_header( 304 );
	exit;
}

readfile( $file );

Now connect to your website using an FTP client. Once connected, upload the file you just created to /wp-contents/uploads/ folder on your website.

Next, you need edit the .htaccess file in your website’s root folder. Add the following code at the bottom of your .htaccess file:

RewriteCond %{REQUEST_FILENAME} -s
RewriteRule ^wp-content/uploads/(.*)$ download-file.php?file=$1 [QSA,L]

Don’t forget to save your changes and upload the file back to your website.

Now all user requests to your media folder will be sent to a proxy script to check for authentication and redirect users to login page.

4. Adding Forms to Your WordPress Intranet with WPForms

WPForms

The main goal of a company intranet is communication. BuddyPress does a great job with activity streams, comments, and private messaging.

However, sometimes you’ll need to collect information privately in a poll or survey. You’ll also need to sort and store that information for later use.

This is where WPForms comes in. It is the best WordPress form builder in the market.

Not only it allows you to easily create beautiful forms, it also saves user responses in the database. You can export responses for any form into a CSV file.

This allows you to organize form responses in spreadsheets, print them, and share among your colleagues.

Extending Your WordPress Intranet

By now you should have a perfectly capable intranet for your organization. However, as you test the platform or open it for users, you may want to add new features or make it more secure.

There are plenty of WordPress plugins that can help you do that. Here are some tools that you may want to add right away.

That’s all for now.

We hope this article helped you create a WordPress intranet for your organization. You may also want to see our list of most useful WordPress widgets for your site.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Create a WordPress Intranet for Your Organization appeared first on WPBeginner.

How to Automatically Link Keywords with Affiliate Links in WordPress

Many content publishers use affiliate marketing to make money online. The problem is that sometimes you may forget to add affiliates links in your article thus leaving money on the table. Luckily, there’s an easy solution to recover that revenue. In this article, we will… Read More »

The post How to Automatically Link Keywords with Affiliate Links in WordPress appeared first on WPBeginner.

Many content publishers use affiliate marketing to make money online. The problem is that sometimes you may forget to add affiliates links in your article thus leaving money on the table. Luckily, there’s an easy solution to recover that revenue. In this article, we will show you how to automatically link keywords with affiliate links in WordPress.

Adding automatic links to keywords with affiliate links in WordPress

How does Automatic Affiliate Links work in WordPress?

Automatic affiliate link plugins allow you to convert specific keywords or brand mentions into affiliate links. This helps you unlock more revenue from your existing blog posts.

Every now and again sometimes you will forget to add affiliate links into your articles. This problem gets even bigger when you have a multi-author blog.

Auto affiliate link plugins fix that problem and help you maximize your earning.

Another advantage of automatic affiliate linking is that it will also add links to your older articles where a specific keyword is mentioned. This allows you to not just monetize your new content, but also take advantage of your older articles.

We have been using automatic affiliate linking on WPBeginner since 2009 to automatically replace brand mentions into affiliate links.

Let’s take a look at how to easily setup automatic affiliate link solution on your WordPress site.

Method 1: Automatically link Keywords in WordPress with ThirstyAffiliates

ThirstyAffiliates is the best affiliate link manager plugin in the market. We use it on our own websites including WPBeginner.

First thing you need to do is install and activate the ThirstyAffiliates plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit the ThirstyAffiliates » Addons page and scroll down to Autolinker addon section. Next, click on the ‘Go to add-on page’ button to continue.

Autolinker addon

This will take you to the ThirstyAffiliates website. Autolinker is a paid addon, and it costs $49 dollars. You will likely recover this investment in the first month if you set it up properly.

After making the purchase you will be able to download the addon. Next, you need to install the Autolinker addon like you would install any other WordPress plugin.

Upon activation, head over to Affiliate Links » Settings page and scroll down to the Autolinker section.

Autolinker settings

First you need to provide the license key for the Autolinker addon. You can obtain this information from your account on ThirstyAffiliates website.

Next, you need to enter the email address used to purchase the addon. Below that, you will see options to enable or disable autolinking on certain pages like homepage, archives, and heading tags. You can also enable auto-linking for custom post types and bbPress forum threads.

On the WPBeginner site, we have autolinking disabled for headings, archive pages, and home page. Mainly because its too obtrusive in our opinion.

We definitely recommend enabling the Random Autolink Placement option because it makes your affiliate links look more natural. If you have this option disabled, then Autolinker will just link the first keyword it finds. While this isn’t bad if you’re only replacing each brand mention or keyword once, but it looks extremely bad when you have the replacement frequency higher than 1 (more on this topic later in the article).

We also recommend that you enable autolinking in your RSS feeds. This will help you maximize your earnings from readers who only read your website via RSS readers. Another advantage is that this lets you make money from people who’re scraping / stealing content from your site.

Since most scraping scripts steal the article from your RSS feed, these articles will contain your affiliate links. Since we started our blog in 2009, we have made thousands of dollars from sites that steal our content by using this technique.

Once you have configured your settings, don’t forget to click on the save settings button to store your changes.

You are now ready to add affiliate links. Go to the Affiliate Links » Add New page to add your first affiliate link.

Adding affiliate links in WordPress with ThirstyAffiliates

You will need to provide a link name and the destination URL. After that, scroll down to the autolinking section and add keywords that you want to be automatically linked.

You can add multiple keywords separated by comma. You can also set a limit on how many times a keyword can be linked in an article.

Add keywords you want to be automatically linked

In most cases, we recommend the Limit of 1 link per keyword. In the past, we used to have 3 links per keyword, but it gets really crowded as your site grows and you have hundreds of affiliate links.

Don’t forget to click on the ‘Save link’ button to add your affiliate link.

Now every time these keywords appear in an article, they will be automatically linked with the affiliate link you added above.

For detailed instructions, see our guide on how to add affiliate links in WordPress with ThirstyAffiliates.

Method 2: Auto Link Keywords with Affiliate Links using Pretty Link Pro

Pretty Link Pro is another great affiliate link manager and URL shortener plugin for WordPress. It allows you to easily manage your links in WordPress and use the auto-linking feature to automatically add affiliate links in your blog posts.

First thing you need to do is install and activate the Pretty Link Pro plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, go to Pretty Link » Activate Pro page to enter your license key. You can find this information from your account on the Pretty Link Pro website.

Activate license

Next, head over to the Pretty Link » Add New Link page to add your affiliate links.

Add new affiliate link

First you need to select a redirection type. You need to use 301 permanent for all affiliate links.

After that, you need to add the target URL, and the URL you want to use as the shortened or cloaked URL.

You also need to add a name for the link in the title field, and any notes that you want to add for the link.

Now you need to click on the ‘Pro Options’ tab to expand it and add the keywords you want to be automatically linked. You can add multiple keywords separated by commas.

Auto link keywords

Don’t forget to click on the create button to save your link. After you save the link, these keywords will be automatically linked in all your posts.

You still need to control how you want automatic links to be added into your articles. You can do this by going to the Pretty Link » Options page and click on the ‘Replacements’ tab.

Auto link options

On this screen, you can enable the replacements as well as set an auto-link threshold which allows you to limit how many times a keyword will be linked in an article.

You can also set the links to open in a new window and make sure to check the nofollow option.

Don’t forget to click on the update button to save your changes.

Pretty Link Pro is a powerful plugin with tons of options for features like URL shortening, redirection, and affiliate link management. Feel free to explore these options and change them if you need.

We hope this article helped you learn how to automatically link keywords with affiliate links in WordPress. You may also want to see our full list of best affiliate marketing tools and plugins for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Automatically Link Keywords with Affiliate Links in WordPress appeared first on WPBeginner.

How to Create a Client Dashboard in WordPress

Do you want to create a client dashboard in WordPress? A custom dashboard in WordPress can help your clients with resources and shortcuts they need to get started. In this article, we will show you how to create a client dashboard in WordPress without writing… Read More »

The post How to Create a Client Dashboard in WordPress appeared first on WPBeginner.

Do you want to create a client dashboard in WordPress? A custom dashboard in WordPress can help your clients with resources and shortcuts they need to get started. In this article, we will show you how to create a client dashboard in WordPress without writing any code or affecting client’s ability to update their websites.

Creating a client dashboard in WordPress

Why Create a Client Dashboard in WordPress?

As WordPress solutions provider, you’ll come across clients who haven’t used WordPress before, and they are not familiar with HTML, CSS, or WordPress terminology.

By creating a custom dashboard for clients, you can provide them with a lean WordPress interface and improved usability.

It will improve client satisfaction which leads to more repeat work. Your clients will need less support which will also save you time.

That being said, let’s take a look at how to easily create a client dashboard in WordPress.

We will walk you through different steps in the process. You can decide how much you want to customize depending on your client’s requirements.

1. Hide Unnecessary Admin Menus

While building a website for your clients, you may use different WordPress plugins, custom post types, WordPress page builders, and other tools. Many of these tools will add their own menu items in the WordPress admin bar, create custom widgets in the admin dashboard, and add links in the toolbar.

The end result looks a bit messy. For a client who has never used WordPress these additional items make the dashboard look more complicated than it needs to.

WordPress dashboard

Let’s start creating a client dashboard by cleaning up the clutter.

To do that you will need to install and activate the Adminimize plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Adminimize page to configure the plugin.

Adminimize settings

You will see different admin sections listed on the settings page. Clicking on a section will expand it, and you will see the options for that particular section.

Settings for a section in Adminimize

You can show or hide any item listed under a section for different user roles. Carefully review each item before hiding it as this may affect your client’s ability to use their website.

For detailed instructions, see our guide on how to hide unnecessary menu items in WordPress with Adminimize.

2. White Label WordPress Dashboard

The Adminimize plugin covers a lot of options to control the appearance of your WordPress admin dashboard. However, it does not have options to hide the WordPress branding and white labeling the admin area.

White labeling includes replacing the WordPress logo with a custom logo, changing the admin area footer, show or hide items from menus, and more.

First, you need to install and activate the White Label CMS plugin. Upon activation, head over to Settings » White Label CMS page to configure plugin settings.

White Label CMS settings

The settings page is divided into different sections. You can click on a section to expand and view its settings.

Some options in the plugin are also available in Adminimize. If you have already hidden those options, then you can skip them.

For detailed instructions about each section, take a look at our article on how to white label your WordPress admin dashboard.

3. Change The WordPress Dashboard Appearance

WordPress comes with a handful of admin color schemes that users can change from their profiles. You can set a color scheme as default for new users. You can also create a custom color scheme of your own.

Admin color schemer

Want to take it to the next level? Try WordPress admin themes. These themes are available as plugins that you can install to change the appearance of your WordPress admin area.

WordPress admin theme

Here are some free WordPress admin themes and plugins that you can try.

4. Add Helpful Resources to Client Dashboard

When delivering projects to your clients, you will notice that many of them have similar questions. Adding a help or resource section in WordPress client dashboard can help you answer those questions and save time spent on providing support.

The best way to add a help section is by installing and activating the WP Help plugin. Upon activation, the plugin adds a new ‘Publishing Help’ menu item in your WordPress admin bar. Clicking on it will take you to the settings page.

Publishing help

This area will be empty since you haven’t created any help resources yet. Go ahead and click on the ‘Add New’ button to create one.

On the next page, you can create your help document just like you would create a WordPress post or page.

New help document

WP Help uses custom post type for documents, and they are hierarchical like pages. You can create parent and child documents to organize them.

Managing docs

You can also sync documents from another WordPress site. This allows you to use the same documentation for all your client projects.

For detailed instructions, see our guide on how to add a help / resource section in WordPress admin.

5. Creating Custom Dashboard Widgets

Dashboard widgets is the first things user see when they log into the WordPress admin area. This is the best place to point your clients into right direction by adding your own custom dashboard widgets.

Here is a simple dashboard widget code that you can use as a starting point.

You will need to add this code into your theme’s functions.php file or in a site-specific plugin.

add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');
 
function my_custom_dashboard_widgets() {
global $wp_meta_boxes;

wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help');
}

function custom_dashboard_help() {

// Content you want to show inside the widget

echo '<p>Welcome to Custom Blog Theme! Need help? Contact the developer <a href="mailto:[email protected]">here</a>. For WordPress Tutorials visit: <a href="http://www.wpbeginner.com" target="_blank">WPBeginner</a></p>';
}

Don’t forget to change the content part with your own message. You can use plain HTML for formatting and styling.

Here is how it looked on our demo website.

Custom dashboard widget

For more information, take a look at our article on how to add custom dashboard widgets in WordPress.

That’s all for now.

We hope this article helped you learn how to create a client dashboard in WordPress. You may also want to see our guide on how to boost WordPress speed and performance.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Create a Client Dashboard in WordPress appeared first on WPBeginner.

How to Create a Client Dashboard in WordPress

Do you want to create a client dashboard in WordPress? A custom dashboard in WordPress can help your clients with resources and shortcuts they need to get started. In this article, we will show you how to create a client dashboard in WordPress without writing… Read More »

The post How to Create a Client Dashboard in WordPress appeared first on WPBeginner.

Do you want to create a client dashboard in WordPress? A custom dashboard in WordPress can help your clients with resources and shortcuts they need to get started. In this article, we will show you how to create a client dashboard in WordPress without writing any code or affecting client’s ability to update their websites.

Creating a client dashboard in WordPress

Why Create a Client Dashboard in WordPress?

As WordPress solutions provider, you’ll come across clients who haven’t used WordPress before, and they are not familiar with HTML, CSS, or WordPress terminology.

By creating a custom dashboard for clients, you can provide them with a lean WordPress interface and improved usability.

It will improve client satisfaction which leads to more repeat work. Your clients will need less support which will also save you time.

That being said, let’s take a look at how to easily create a client dashboard in WordPress.

We will walk you through different steps in the process. You can decide how much you want to customize depending on your client’s requirements.

1. Hide Unnecessary Admin Menus

While building a website for your clients, you may use different WordPress plugins, custom post types, WordPress page builders, and other tools. Many of these tools will add their own menu items in the WordPress admin bar, create custom widgets in the admin dashboard, and add links in the toolbar.

The end result looks a bit messy. For a client who has never used WordPress these additional items make the dashboard look more complicated than it needs to.

WordPress dashboard

Let’s start creating a client dashboard by cleaning up the clutter.

To do that you will need to install and activate the Adminimize plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Adminimize page to configure the plugin.

Adminimize settings

You will see different admin sections listed on the settings page. Clicking on a section will expand it, and you will see the options for that particular section.

Settings for a section in Adminimize

You can show or hide any item listed under a section for different user roles. Carefully review each item before hiding it as this may affect your client’s ability to use their website.

For detailed instructions, see our guide on how to hide unnecessary menu items in WordPress with Adminimize.

2. White Label WordPress Dashboard

The Adminimize plugin covers a lot of options to control the appearance of your WordPress admin dashboard. However, it does not have options to hide the WordPress branding and white labeling the admin area.

White labeling includes replacing the WordPress logo with a custom logo, changing the admin area footer, show or hide items from menus, and more.

First, you need to install and activate the White Label CMS plugin. Upon activation, head over to Settings » White Label CMS page to configure plugin settings.

White Label CMS settings

The settings page is divided into different sections. You can click on a section to expand and view its settings.

Some options in the plugin are also available in Adminimize. If you have already hidden those options, then you can skip them.

For detailed instructions about each section, take a look at our article on how to white label your WordPress admin dashboard.

3. Change The WordPress Dashboard Appearance

WordPress comes with a handful of admin color schemes that users can change from their profiles. You can set a color scheme as default for new users. You can also create a custom color scheme of your own.

Admin color schemer

Want to take it to the next level? Try WordPress admin themes. These themes are available as plugins that you can install to change the appearance of your WordPress admin area.

WordPress admin theme

Here are some free WordPress admin themes and plugins that you can try.

4. Add Helpful Resources to Client Dashboard

When delivering projects to your clients, you will notice that many of them have similar questions. Adding a help or resource section in WordPress client dashboard can help you answer those questions and save time spent on providing support.

The best way to add a help section is by installing and activating the WP Help plugin. Upon activation, the plugin adds a new ‘Publishing Help’ menu item in your WordPress admin bar. Clicking on it will take you to the settings page.

Publishing help

This area will be empty since you haven’t created any help resources yet. Go ahead and click on the ‘Add New’ button to create one.

On the next page, you can create your help document just like you would create a WordPress post or page.

New help document

WP Help uses custom post type for documents, and they are hierarchical like pages. You can create parent and child documents to organize them.

Managing docs

You can also sync documents from another WordPress site. This allows you to use the same documentation for all your client projects.

For detailed instructions, see our guide on how to add a help / resource section in WordPress admin.

5. Creating Custom Dashboard Widgets

Dashboard widgets is the first things user see when they log into the WordPress admin area. This is the best place to point your clients into right direction by adding your own custom dashboard widgets.

Here is a simple dashboard widget code that you can use as a starting point.

You will need to add this code into your theme’s functions.php file or in a site-specific plugin.

add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');
 
function my_custom_dashboard_widgets() {
global $wp_meta_boxes;

wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help');
}

function custom_dashboard_help() {

// Content you want to show inside the widget

echo '<p>Welcome to Custom Blog Theme! Need help? Contact the developer <a href="mailto:[email protected]">here</a>. For WordPress Tutorials visit: <a href="http://www.wpbeginner.com" target="_blank">WPBeginner</a></p>';
}

Don’t forget to change the content part with your own message. You can use plain HTML for formatting and styling.

Here is how it looked on our demo website.

Custom dashboard widget

For more information, take a look at our article on how to add custom dashboard widgets in WordPress.

That’s all for now.

We hope this article helped you learn how to create a client dashboard in WordPress. You may also want to see our guide on how to boost WordPress speed and performance.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Create a Client Dashboard in WordPress appeared first on WPBeginner.