EDITS.WS

Author: Simon Keating

  • How to Fix the “Your PHP Installation Appears to be Missing the MySQL Extension Which is Required by WordPress” Error

    WordPress is one of the most versatile and robust content management systems (CMSs) out there. Still, you may occasionally run into some issues when using it. One of those is an error informing you that “your PHP installation appears to be missing the MySQL extension which is required by WordPress.”

    The good news is that this is a relatively straightforward problem with a handful of quick and easy solutions. Once you understand what the error means and the common causes of it, you’ll be better prepared to resolve it and prevent it from happening again. 

    Below, we’ll explain what the WordPress MySQL extension error is and some of its common causes. Then, we’ll walk you through how to fix the problem as well as how to prevent it from happening again. 

    What is the WordPress MySQL extension error?

    Before we get into resolving this error message, it’s important to understand what it means. So let’s go over some basics. 

    First of all, Hypertext Preprocessor (PHP) is a server-side scripting language designed for web development. It’s also the most popular scripting language today, as well as the primary language of WordPress.

    MySQL is a database management system used by WordPress to store your site’s information. This is where you can find all of your database tables and files. 

    When you’re working on your website, you may come across the “Your PHP installation appears to be missing the MySQL extension which is required by WordPress” error message. If you’ve never encountered this issue, you may be confused as to what it means, let alone how to fix it. 

    This error message will usually show up when you try to install or update WordPress. Although an error message like this can be frustrating and stressful, there’s no need to panic.

    What causes the MySQL extension error on WordPress?

    There are a handful of reasons you might be dealing with this problem. Typically, it means that something is wrong with your site’s code. As the error message indicates, some element is preventing WordPress from properly connecting to the MySQL database. 

    One of the most common causes of the error is that your server does not have the MySQL extension installed or enabled. Usually, this can be attributed to one of two things:

    First, you may be using an incompatible version of PHP. MySQL 5.0 requires PHP 5.2 or higher. WordPress recommends using the latest stable version of PHP, which is currently PHP 7.4.

    If you’re using a particularly outdated version of WordPress with a modern version of PHP, this error can also happen. PHP 7.0 deprecated the MySQL extension and WordPress now uses the newer PDO_MySQL or MySQLi extensions.

    The other possibility is that your PHP is misconfigured, meaning it’s not properly set up to work with your WordPress site. In addition to being outdated or incompatible, it could be due to incorrect server settings.

    How to fix the “Your PHP installation appears to be missing the MySQL extension which is required by WordPress” error

    Now that you understand more about what the message means and what may be causing it, let’s take a look at how to resolve it. 

    1. Update WordPress

    As we mentioned, using an older version of WordPress, like 3.9 or lower, might cause this error message. Therefore, one of the first steps you should take to resolve it is to make sure that you’re using the most updated version of WordPress Core

    This is likely the source of the problem if you’re using the latest version of PHP (which we’ll cover in the next section). To determine whether there’s an update available, you can navigate to your admin area and go to Dashboard → Updates.

    checking for available updates in WordPress

    Note that if you’re using a WordPress.com site, you can find updates under My Home →  Updates, instead. Any available updates will be shown on this screen.

    It will also inform you of what version of WordPress you’re currently using. If you see a notification saying “An updated version of WordPress is available,” you can select the Update to version [X] button. 

    On this page, you can also view any plugin and theme updates that are available. As with WordPress Core, plugins can present compatibility issues with PHP that may result in the MySQL extension error. 

    So, we also recommend updating any plugins that have newer versions available. If there are multiple, you can simply select all, then click on Update Plugins.

    2. Check your PHP version

    Once you’re sure that your WordPress core is up to date, the next step is to check which version of PHP your server is using. There are a couple of ways to go about this.

    The easiest option is to navigate to Tools → Site Health from your WordPress dashboard.

    WordPress site heath check

    Next, you can select the Info tab, then scroll down and expand the Server panel. Under this section, you can locate the PHP version you’re currently running.

    PHP version in site heath

    If you’re not able to access your WordPress admin, you can check your PHP version by connecting to your server via a File Transfer Protocol (FTP) client like FileZilla. Alternatively, if your web host uses cPanel, you can use the File Manager tool. 

    Either in your FTP client or your File Manager, create a new file in the root directory of your site (/public_html) and name it phpinfo.php. Next, open the file and copy and paste the following code snippet:

    <?php phpinfo(); ?>

    Save the file when you’re done. Then, in a new browser tab, visit “yoursite.com/phpinfo.php”. Be sure to replace “yoursite.com” with your domain name. 

    Now you should see a page that displays your server’s PHP configuration information.

    information about current PHP version

    The PHP version your server is running should be listed at the top of the screen. If it begins with 7 or 8, an outdated version of PHP probably isn’t the reason you’re seeing the error message. 

    If you’re using PHP 5.X, you should consider updating your PHP version

    3. Ensure the MySQL extension is installed

    If your WordPress version is up to date, it’s important to also check whether the MySQL extension is installed and enabled. It’s possible that the Operating System (OS) you’re using didn’t include the extension by default, which means you’ll have to install it yourself. 

    To determine whether it’s installed, revisit the phpinfo.php file that you created in the last step. Then, navigate to the mysqli or mysql section. If the MySQL extension is installed, it will indicate the version of it next to the Client API field.

    finding the mysqli version used

    But, if this field is blank or not visible at all, it means that the MySQL extension is not installed. The process for installation will depend on your host. You can refer to the PHP installation guide for details.

    If your provider uses cPanel, you can enable the extension by navigating to Software from your cPanel dashboard, then choosing Select PHP Version.

    selecting PHP version in cpanel

    Here, select the most recent version of PHP, then click on the boxes for mysqli and mysqlnd. Save your changes, then revisit your site to see if you’re still seeing the error message.

    Alternatively, if you’re unsure about installing the MySQL extension on your own, you may want to reach out to your web host. You can always request that they complete this process for you.

    4. Verify that the PHP extension is properly configured

    Once you know that your WordPress version is up to date and the MySQL extension is installed, you can safely confirm that something else is causing the problem. Another reason you might be seeing the error message is that the extension is not configured correctly. 

    There are a few issues that can lead to misconfiguration, including incorrect file paths or using a php.ini file intended for a different type of server. For instance, you may be using one meant for Windows servers on a Linux server. 

    To verify that your PHP extension is configured properly, navigate back to your phpinfo.php file. Then, locate the Loaded Configuration File item.

    loaded configuration file info

    This is where you can find the file path value. Note the file path listed here, then look for the extension_dir row.

    extension_dir info

    The file path listed here should match what is listed for the Loaded Configuration File. If not, the next step is to edit your php.ini file to correct it. When you’re done, revisit your site to make sure the error is resolved. 

    Tips for preventing the MySQL extension error in WordPress from happening again

    At this point, you’ve learned how to fix the MySQL extension error in WordPress. But there are also steps that you can take to prevent it from happening in the future. 

    The first is to back up your WordPress site in real time. Keeping updated copies of your site files can make it easier to identify the source of issues as they occur. When you use a solution like Jetpack, you can also ensure that you always have an updated version of your site to restore in the event that something goes wrong. 

    It’s also crucial to make sure you’re keeping your WordPress software up to date. Not only can this help prevent errors like the MySQL extension issue, but it can provide security and performance enhancements for your site as well. 

    Finally, be sure to choose a WordPress web host that uses updated versions of PHP. When providers automatically handle these updates for you, this eliminates the need to manually manage it yourself. They can also help streamline server configuration to ensure that you’re adhering to best practices. 

    In turn, this can reduce the likelihood of running into PHP-related errors. There are a wide variety of high-quality and reliable WordPress hosts to choose from. Some of the top WordPress hosts include Bluehost, DreamHost, and Pressable

    Streamline WordPress website maintenance

    WordPress is a powerful and dependable CMS, but you can still run into issues from time to time when using it. You might encounter an error message informing you that “Your PHP installation appears to be missing the MySQL extension which is required by WordPress.” Fortunately, there are a handful of solutions you can use to resolve this problem.

    As we discussed, there are four measures you can take to fix this error in WordPress:

    1. Update your WordPress software and plugins.
    2. Check your PHP version and update it, if necessary.
    3. Ensure that the MySQL extension is installed.
    4. Verify that the PHP extension is properly configured. 

    To help prevent WordPress errors from happening in the future and to make troubleshooting and resolving any issues easier, it’s important to back up your site in real time. Learn how Jetpack Backup can make this a breeze!

  • How to Add & Use a CDN in WordPress (Full Setup Guide)

    There are a lot of ways to speed up a website, but one of the most effective is using a Content Delivery Network (CDN). A CDN stores copies of your site, or select content, on a network of servers, then sends that content to your visitors’ computers from the server that can do it the fastest. This is usually one nearest to them geographically. 

    Using a content delivery network distributes your server’s workload — meaning your site loads faster and more reliably while reducing the resources used by your hosting plan. 

    Because there are so many options, the question isn’t really whether you should use a CDN for your WordPress site, but which one to use and how to integrate it with WordPress. 

    Some CDNs are free. Others come with hefty fees. Some require advanced technical knowledge to set up and others are built for WordPress and can be easily integrated with a plugin.

    The point is that not all CDNs are the same. Below, you’ll learn how to choose the right CDN for WordPress and how to install it. Then, we’ll discuss the benefits of using a CDN and answer some frequently asked questions.

    What’s the best CDN for WordPress?

    There are a lot of CDN services that you can use with any website. Although, one downside of most content delivery networks is that they’re premium services. This is because of the infrastructure required behind the scenes.

    To put it simply, when you sign up for a CDN, you get access to a global network of real-world data centers. These data centers cache copies of your site and its files. 

    So, when a visitor goes to access your site, the CDN then ‘intercepts’ that connection and serves the website from the data center that’s closest to the user. This way, the website is delivered more quickly and efficiently.

    Essentially, CDNs are optimized to serve content as quickly as possible and to be able to handle massive amounts of traffic. With a CDN, your website still works just as intended, but in most cases, it loads much faster than it would using your hosting provider’s servers alone.

    Popular content delivery networks (CDNs)

    There are a lot of choices for CDNs. Cloudflare is one popular option that comes with additional services you may or may not want. While it’s well-known, it’s going to be more complicated to set up when compared to other solutions that are completely dedicated to WordPress sites. That said, if you have an advanced site and an IT team available to help, it could be a great option. There are free plans available with limited features, but business plans start at $200 per month and are designed for companies that rely heavily on their website. 

    Cloudfront is a CDN service from Amazon. It’s part of the Amazon Web Services suite of tools and is another option that could be ideal for sites with a large volume of traffic (hundreds of thousands or millions of hits each month) or a large database of content or products. You’ll need an AWS account and an AWS Identity and Access Management user to get started. Cloudfront does have a plugin for WordPress, but you might want to view the getting started documentation to see if you, or your IT manager, is up for what might be a lengthy setup process. Cloudfront was not designed solely for WordPress sites.

    KeyCDN is another CDN for WordPress that you may have heard of. It has powerful, fast servers and a focus on speeding up images — one of the heaviest parts of a website. It also includes a plugin that makes integrating with WordPress relatively simple. However, there are still quite a few settings that require configuration, which can be confusing for non-developers. There’s also no free plan available, and pricing is based on storage space used. This means that the more you grow, the more you’ll have to pay.  

    The best CDN for most WordPress sites

    Unless you’re a larger company, many popular CDNs can be prohibitively expensive or complicated to manage. But most WordPress sites can greatly benefit from an outstanding free option that’s built specifically for WordPress — Jetpack.

    Jetpack offers a free CDN that you can use for your website’s images and static files. Those are features built into the base version of the plugin. You don’t even need a premium Jetpack license to access CDN functionality.

    Jetpack Boost homepage

    Additionally, you can install the Jetpack Boost plugin, which will help you optimize your load times even further. With Jetpack Boost, you can improve your Core Web Vitals by having the plugin optimize your CSS, defer non-critical scripts, and enable lazy loading for your site.

    If you’re not sure what CDN to use, you can’t beat Jetpack when it comes to easy integration. 

    How to install a CDN in WordPress

    Typically, installing a CDN involves editing your Domain Name Records (DNS) so they point to the service instead of your web hosting provider. However, that process can vary depending on which content delivery network you’re using.

    With Jetpack, you don’t need to edit any domain records to use the CDN functionality. For WordPress CDN setup with Jetpack, all you have to do is install the plugin and activate it. After that, you’ll need to connect the plugin to a WordPress.com account to start taking advantage of its features.

    Although Jetpack works with self-hosted WordPress sites, it’s developed by the Automattic team (the same people behind WordPress.com). Creating a free WordPress.com account takes only minutes and you don’t need to use it beyond entering your credentials to activate Jetpack.

    How to configure your WordPress CDN

    We’re going to use Jetpack CDN as an example. Before you read through it, however, you may want to check out other CDN getting started documentation like this one from Cloudfront. Then, compare Jetpack’s configuration process below to fully understand the difference in ease of use. 

    How to configure Jetpack CDN

    Once the plugin is active on your website, navigate to Jetpack → Settings and open the Performance tab. Look for the section that says Performance & speed and turn on the Enable site accelerator option:

    turning on Jetpack CDN

    At the bottom of this section, you can also choose to enable lazy loading for images. If you do, visitors won’t have to load all images from your website’s pages at once. Instead, images will only start to load as users scroll down the respective pages.

    If you’re using Jetpack Boost, there will be an additional Jetpack → Boost page in the dashboard, where you get access to more performance-related settings. From this page, you can monitor your PageSpeed Insights performance scores for the desktop and mobile versions of your website.

    Jetpack Boost performance score

    If you already enabled lazy loading via Jetpack, you can skip that setting here. Then, you can turn on the Optimize CSS Loading and Defer Non-Essential JavaScript settings and you’re good to go.

    These settings aren’t part of Jetpack’s CDN functionality, but they’re essential if you want to improve your website’s overall performance. All in all, the Jetpack CDN features and Jetpack Boost go hand-in-hand in helping you reduce site load times.

    What are the key benefits of Jetpack CDN?

    Some CDNs offer massive rosters of servers spread out across the world, which is perfect for large, global enterprises. Others have a wide range of extra features built in. For most sites, these far exceed what they’ll ever need or use. 

    If you’re running a growing website and simply want to speed up your site without breaking the bank, Jetpack CDN is the ideal option.

    With Jetpack, you get to leverage the world-renowned WordPress.com infrastructure to improve your site’s loading times, all for free. Here are some other benefits:

    • It’s easy to set up. Other CDNs typically involve a complex integration process. In most cases, you need to configure your DNS settings to point to other nameservers to use a CDN. This can be confusing, especially for WordPress beginners. But Jetpack enables you to enhance your website’s performance without a complicated configuration process.
    • It can reduce your hosting fees. Because many of your large files are offloaded to Jetpack CDNs servers, your storage capacity and bandwidth used with your hosting provider are reduced. 
    • It includes unlimited resources. Many other CDNs charge more based on the size of your site or the number of visits you get in a certain time period. The more you grow, the more you pay! But Jetpack is free no matter how large your site becomes.
    • It’s built for WordPress. This means that it integrates seamlessly with the themes and plugins you’re already using and you don’t have to spend your valuable time troubleshooting compatibility issues. Plus, it’s always up-to-date with the latest version of WordPress. 
    • It includes automatic image compression. Images are typically one of the heaviest types of files on your WordPress site. Jetpack CDN automatically compresses images as you upload them to reduce their weight, and even optimizes them for mobile devices.

    Frequently asked questions (FAQs)

    If you still have any questions about CDNs and how they work, this section will answer them. Let’s start by digging into how to use a CDN in WordPress.

    What is a CDN in WordPress?

    Content delivery networks (CDNs) are services that enable you to cache copies of your site on third-party servers. Typically, CDNs have data centers around the world, which they use to serve the cached copies of your site when a visitor tries to access it. 

    If you decide to use a CDN, you’ll need to sign up for it. You’ll also have to integrate it with your site manually if you’re looking for ways to improve its performance.

    One key advantage of using a CDN with WordPress is that the CMS is so popular that most services offer easy integration with it. That means you usually get access to plugins or in-depth instructions on how to configure a CDN to work with your WordPress website.

    Do I need to use a CDN?

    Using a CDN isn’t strictly necessary for any website, but it’s recommended in most cases. That’s because ensuring that your website loads as fast as possible will improve the user experience and can help reduce its overall bounce rate.

    In most cases, integrating a CDN with WordPress will drastically reduce loading times almost immediately. If you combine the use of a CDN with other performance improvement tweaks, you’ll be able to offer the best possible user experience.

    If you don’t have the budget for a paid CDN, you can use a service like Jetpack. With Jetpack, you get access to most of the features that paid CDN services offer, all for free. If you want access to more advanced features you can always choose to upgrade to a premium Jetpack plan.

    What are the benefits of using a CDN for WordPress?

    The main benefit of using a CDN is to reduce your website’s load times. CDNs achieve this by serving cached copies of your site from the closest data center to its visitors. Their servers are optimized for performance. What’s more, they can typically handle a lot more concurrent traffic than regular hosting plans.

    Besides performance improvements, CDNs also offer a range of additional benefits. Some of them include:

    • Increased security: With a CDN, you get an added layer of security between attackers and your website. Some CDNs also offer web firewall functionality, which enables you to block connections from malicious sources. 
    • Protection against DDoS attacks: Most CDNs offer protection against distributed denial of service (DDoS) attacks. A DDoS attack is when someone directs massive amounts of concurrent traffic to your website to overwhelm it, making it impossible to access.
    • Diminishing your server’s workload: Since a CDN handles most visitor requests, your server doesn’t have to work as much. Often, that means you can opt for a less expensive hosting plan without sacrificing quality.

    If you’re using a free CDN like Jetpack, there’s basically no downside. Premium CDNs can be expensive, so it becomes a question of how much the increase in performance and the other benefits outweigh the costs. With a free (and powerful) CDN, it’s all upside. 

    Is there a free CDN built specifically for WordPress?

    Jetpack is the only WordPress-specific CDN on the market. Some of Jetpack’s features are only for users with premium licenses, like real-time WordPress backups and Customer Relationship Management (CRM) tools. Jetpack CDN, on the other hand, is available for all users.

    To get started using Jetpack and its built-in CDN, you only need to install the plugin and set up a free WordPress.com account. You can also install Jetpack Boost to improve performance even further.

    Will a CDN improve my WordPress site’s performance?

    In the vast majority of cases, using a CDN will result in an immediate performance boost. That’s because most CDN servers are far better optimized than regular ones. CDNs also offer data centers around the world, which cut down on latency issues when connecting to websites hosted in distant regions.

    If you’re using a performance-oriented WordPress hosting provider and you’ve configured your website properly, it might already load quickly. However, using a CDN can further reduce load times, which is always a positive.

    What else can I do to improve my site’s performance?

    There are a lot of ways to improve a website’s performance. When you set up a new WordPress website, it should load almost instantly. If it doesn’t, it’s likely that your web host is the problem.

    Unfortunately, not all web hosts are optimized for performance, even if you’re not using a shared hosting plan. If you have a brand new website and it’s taking more than two seconds to load, you might want to consider switching to a different hosting provider.

    On the other hand, if you’re happy with your web host and your site’s basic performance, there are still a lot of ways to reduce load times even further. Among those methods, you have options like:

    • Compressing images before or during upload. Images can take up a lot of server space and they can slow down loading times drastically. Instead of avoiding images, we recommend compressing them to reduce overall file sizes.
    • Enabling browser caching. With browser caching, visitors can store files from your site locally. That way, they don’t need to reload your website fully every time they visit it.
    • Turn on lazy loading for images. This feature makes it so that users don’t load images until they scroll down to see them. Lazy loading helps reduce the initial loading times for a page.
    • Minifying CSS and JavaScript. Most modern websites use a varied collection of CSS and JavaScript. Minifying these files reduces how long they take to load.

    On top of those optimizations, you’d also be wise to consider Core Web Vitals. These are user experience metrics that Google takes into account when ranking websites in search results. Core Web Vitals are directly related to website performance.

    If you use Jetpack Boost, the plugin can help you measure and improve your Core Web Vitals. 

    Use a content delivery network (CDN) to improve your WordPress website’s performance

    Making sure that your website is as fast as possible is key to providing a positive user experience. If you don’t, slow load times can cause you to lose visitors. Using a CDN is perhaps the best way to improve your site’s performance.

    There are a lot of options for CDNs that you can use with WordPress, but Jetpack CDN is a great, free tool that’s easy to configure. For most sites, Jetpack is the ideal tool to instantly improve site performance. 

    Check out Jetpack’s complete lineup of WordPress security, performance, and growth tools. 

  • How to Add a Mega Menu to WordPress (+5 Best Plugins)

    Menus play an important role in your website’s design and functionality. They help visitors navigate between your pages and can improve overall usability. Still, when you have a lot of content, figuring out how to display it without it looking crowded or chaotic can be challenging.

    That’s where mega menus come in. A WordPress mega menu can give your website a more professional appearance and help people find the content they’re looking for more easily. Plus, there are multiple methods you can use to add one to your website.

    In this post, we’ll explain what a mega menu is and the benefits of using one in WordPress. Then we’ll walk you through your options for creating one and explore five of the best mega menu plugin options.

    What is a mega menu in WordPress?

    Your WordPress menu is the structure you use to organize and display your website’s pages. It’s usually at the top of the site — though it can also be on the side or shown in another unique way.

    To access the built-in menu system, you can start by logging into your WordPress site. Then, from your admin dashboard, navigate to Appearance → Menus

    creating a menu in WordPress

    By default, WordPress uses standard menus, which show a list of pages, sometimes with one-column dropdowns. There’s no additional information or content like images, descriptions, etc. — it’s just a series of lists. It’s typically pretty simple and straightforward, but does limit you when it comes to the number of pages or volume or information you can include. Here’s an example from WooCommerce:

    WooCommerce website with a standard dropdown menu

    A mega menu is a type of drop-down menu that allows users to access a large amount of content in one place. Mega menus are often used on eCommerce websites and are becoming increasingly popular on other types as well. You can see an example on the Nalgene site, which showcases product photos, sliders, and other content in more of a horizontal style:

    mega menu example on Nalgene's site

    The key difference is that a mega menu typically has multiple columns of content, whereas a traditional drop-down menu only has one column. This allows for a much more robust and comprehensive menu, which can be especially helpful on websites with a lot of information.

    Why use a mega menu in WordPress?

    One of the benefits of using a mega menu is that it can reduce the number of clicks needed to navigate to a particular piece of content. This is great for visitors who are looking for something specific on your website, but it also improves the user experience for first-time visitors by helping them explore your site more efficiently. 

    Mega menus can also be used to improve the look and feel of your website and even promote specific content or encourage the actions you want visitors to take. Plus, they’re highly customizable — so they can play off the rest of your brand to provide a seamless, visually-appealing experience.

    How to create a WordPress mega menu

    There are a couple of different ways to create a mega menu in WordPress. One option is to do it manually, by adding custom code. The other (quicker and easier) option is to use a plugin. Let’s take a look at how to add a mega menu to WordPress using both of these methods. 

    Creating a mega menu manually (without a plugin)

    If you’re comfortable working with your site files, this can be a good option for creating something highly unique.

    Before doing this, it’s important to back up your WordPress site. You might also consider creating a staging site to build and test your mega menu before pushing it live. This will help you avoid any issues that break functionality on your live site. 

    First, browse to Appearance → Menus in your WordPress dashboard and name your menu. 

    creating a new menu in WordPress

    Click on the Create Menu button. Drag and drop the pages you want to include in the mega menu, indenting them as submenus where necessary.

    adding pages to the mega menu

    When you’re done, you can select Save Menu.

    Next, navigate to your cPanel’s File Manager or use a File Transfer Protocol (FTP) client to connect to your website’s files. Find your theme’s stylesheet by going to /wp-content → /themes → /your-theme-or-child-theme → /style.css. At the bottom, add the following line of code:

    .main-navigation ul:hover li ul,
    .main-navigation ul:hover li ul li ul {
        display: inherit;
    }

    This will make your sub-menu items appear when someone hovers over a top-level item. Now, we’ll customize the code to make it a little more visually appealing, ensuring that each sub-level item displays in full-width, with sections of items appearing next to one another. Add this code:

    .main-navigation {
        position: relative;
    }
    .main-navigation li {
        position: static;
    }
    .main-navigation ul li:hover ul {
        display: inherit;
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
    }
    .main-navigation ul li:hover ul li ul {
        display: inherit;
        position: relative;
        left: 0;
    }
    .main-navigation ul li:hover ul li {
        float: left;
        position: static;
        display: block;
        padding-top: 1em;
    }
    .main-navigation ul li:hover ul li ul li {
        float: none;
        padding-top: 0;
    }

    You can then play with the styling to make it look the way you want, in line with your brand and the rest of your site. For example, you might want to switch out the background color of your mega menu or bold certain items. You might also want to adjust column spacing or add extra elements like photos. If you’re a developer or have a degree of code experience, you can craft your mega menu to look however you’d like!

    Want a more in-depth guide? Tuts+ offers a full walkthrough.

    Another option to create a mega menu without a plugin is to check your theme’s built-in options. Some, like the Hestia theme, include mega menu options by default. This isn’t always the case, though. 

    Creating a mega menu with a WordPress plugin

    If you’re not comfortable editing your site files or your theme doesn’t offer built-in mega menu options, another method you can use to create a mega menu in WordPress is with a plugin. There are plenty of options available, which we’ll discuss in the next section.

    While this is a safer option than creating one manually, you should still back up your WordPress site before making any changes. 

    The specific features and functionality of the plugin will vary depending on which tool you decide to use. But overall, the concept will be the same.

    We’ll use Max Mega Menu as an example. To get started, you can install and activate the plugin on your WordPress website.

    Next, you’ll need to enable the mega menu functionality by navigating to Appearance → Menus. You can choose the desired location for your menu, then click on the box next to Enable.

    creating a mega menu with a plugin

    Save your changes when you’re done. To customize your mega menu appearance and settings, you can go to Mega Menu → Menu Themes.

    customizing the look of the mega menu

    Here, you’ll find a variety of options for styling the menu. You can modify the menu type as well as the appearance and functionality of it. 

    Five best WordPress mega menu plugins

    If you decide that you want to use a mega menu WordPress plugin, there are plenty of options to choose from. As you’re researching them, it’s important to consider the specific features you’re looking for as well as your budget. With that in mind, let’s take a detailed look at five of the best WordPress mega menu plugins.

    1. Max Mega Menu

    Max Mega Menu plugin homepage

    Max Mega Menu is an incredibly popular plugin that lets you easily add high-quality, customizable menus to your WordPress site. It includes a drag-and-drop builder that’s easy to use. It also supports multiple mega menus for various locations across your site. 

    Key features of Max Mega Menu:

    • Multiple, individually configurable menu locations
    • A grid layout builder 
    • Menu hover and transition options
    • A drag-and-drop builder
    • Shortcodes
    • Menu item icons
    • A search box
    • Menu logos

    Pros of Max Mega Menu:

    • There are free and premium options available.
    • It’s lightweight, with clean code.
    • It includes support for WooCommerce and Easy Digital Downloads.
    • You can place mega menus in multiple locations.
    • The widgets let you add maps, contact forms, and more.
    • You can also build mega menus from scratch or use your existing menus.
    • Keyboard navigation makes for better accessibility.

    Cons of Max Mega Menu:

    • Advanced customization options are only available with a pro license.
    • There’s no free trial for premium plans.

    Ease of use:

    Max Mega Menu is very easy to use. It automatically converts existing menus into mega menus. It has a user-friendly interface that’s simple to navigate. A pro license also includes updates and priority support.

    Pricing:

    Max Mega Menu offers a free version with limited customization options. Pro plans with advanced features start at $29 for a single site license. This also includes a year of support. 

    2. QuadMenu

    QuadMenu plugin homepage

    QuadMenu is another popular mega menu plugin that’s easy to use regardless of your experience level. The flexible tool includes an intuitive drag-and-drop builder and a wide variety of styling and customization options for building menus and submenus for WordPress. 

    Key features of QuadMenu:

    • A drag-and-drop builder
    • Multiple menu locations
    • Off-canvas, sticky, and vertical menus
    • Options for aligning links
    • Float dropdown menus
    • Font Awesome icons and Google Fonts
    • Dropdown animations
    • A variety of filters
    • Display widgets

    Pros of QuadMenu:

    • There’s both a free and premium version.
    • It’s suitable for beginners and developers.
    • It supports child themes.
    • There’s automatic and manual menu integration.
    • It’s intuitive and easy to use.
    • There are tab and carousel menus available with the pro version.

    Cons of QuadMenu:

    • Advanced styling options require a pro license.
    • There are limited live preview options.

    Ease of use:

    QuadMenu is suitable for both beginners and developers. The drag-and-drop builder makes creating and customizing your mega menus quick and easy. 

    Pricing:

    QuadMenu has a free version. Pro licenses are available starting at $30 for a single site. 

    3. UberMenu

    UberMenu plugin homepage

    If you’re looking for a premium mega menu builder, UberMenu is worth checking out. This powerful, feature-rich tool uses a sophisticated grid system that lets you quickly build a professional-looking mega menu. 

    Key features of UberMenu:

    • A unique grid system
    • More than 50 style settings
    • Dynamic item generation
    • Submenus based on posts, categories, and more
    • The option to add tabs within menus
    • Touch-enabled menus
    • Dropdown CSS3 transitions
    • Multiple menu triggers (hover, hover intent, and click)
    • Various menu locations
    • Flexible layouts

    Pros of UberMenu:

    • It’s widely used and highly rated among WordPress site owners.
    • There are options to add custom HTML, shortcodes, and widgets.
    • It uses the native WordPress Customizer interface.
    • There are unlimited menu themes.

    Cons of UberMenu:

    • There’s only a premium version available.
    • Depending on your theme, it may not be the best option if you don’t have CSS/PHP programming skills.

    Ease of use:

    Using UberMenu will likely be a breeze for experienced WordPress users because the interface is built on the native Customizer. You can view real-time previews of your menu as you build it. For WordPress beginners, though, this might be more difficult to navigate than an intuitive drag-and-drop builder interface.

    Pricing:

    An UberMenu license for a single site costs $26. This includes six months of developer support.

    4. ElementsKit 

    ElementsKit plugin page

    If you’re familiar with and use the Elementor page builder, ElementsKit is an excellent mega menu plugin to consider. The tool includes an expansive library of custom modules, featuring a header and footer builder.

    Key features of ElementsKit:

    • A live content interface
    • A custom module library
    • A header and footer builder
    • Parallax scrolling
    • Over 200 pre-designed page templates
    • A countdown timer widget
    • Dropdown animations
    • Off canvas, sticky, and vertical menus
    • Font Awesome icons
    • Light and dark themes
    • Two mobile menu layouts
    • Custom CSS

    Pros of ElementsKit:

    • It fully integrates with the Elementor page builder.
    • It includes drag and drop functionality.
    • It’s beginner and user-friendly.
    • It has customizations for icon and badge text colors.
    • It has built-in WooCommerce features.
    • It offers advanced mega menu options.

    Cons of ElementsKit:

    • It’s not ideal unless you use the Elementor page builder.
    • It can be overwhelming if you’re only looking for a mega menu builder tool.

    Ease of use:

    ElementKits is a straightforward, versatile tool. If you’re not familiar with Elementor, the interface may take some getting used to. Although, if you already use the page builder plugin, you’ll likely get the hang of this add-on in no time.

    Pricing:

    ElementsKit offers a free version. Premium licenses start at $39 per year for a single site.

    5. WP Mega Menu

    WP Mega Menu plugin homepage

    If you’re looking for a simple and straightforward freemium tool to build mega menus in WordPress, WP Mega Menu is another solid option. This plugin is easy to use and provides all the basic features and functions needed to build a quality mega menu for a wide variety of sites. For a free tool, it also comes with an impressive set of options for customization and styling.

    Key features of WP Mega Menu:

    • Intuitive navigation
    • A drag-and-drop interface
    • The option to create and save menu themes
    • Logo, search bar, and background images
    • Google Fonts and Font Awesome icons
    • Social icons
    • Menu labeling

    Pros of WP Mega Menu:

    • It’s completely free to download and use, with a pro upgrade available.
    • It’s easy to navigate and use.
    • It has features that other plugins only include in premium versions.
    • It has the option to create and save menu themes to use across multiple websites.

    Cons of WP Mega Menu:

    • It lacks tools designed for developers compared to other plugin options.
    • There’s no sticky or off-canvas options with the free version.

    Ease of use:

    WP Mega Menu is a beginner-friendly plugin with lots of options. It comes with an intuitive interface that’s easy to understand and navigate. 

    Pricing

    WP Mega Menu is free. But it also offers Premium plans starting at $29 per year for a single license. 

    Comparison of the top mega menu plugins for WordPress

    Max Mega Menu QuadMenu UberMenu ElementsKit WP Mega Menu
    Drag & Drop Yes Yes No Yes Yes
    Icons Yes Yes With extension Yes Yes
    Widgets Yes Yes Yes Yes Yes
    Sticky Premium Yes With extension Premium No
    Vertical Premium Yes Yes Yes Premium
    Off-Canvas Yes Yes No Yes No
    Google Fonts/Font Awesome Premium Yes Yes Yes Yes
    Transitions/Animations Yes Yes Yes Premium Premium
    Pricing Free; $29 per year Free; $30 for one site $26 per year Free; $39 per year Free; $29 per year

    Frequently asked questions (FAQs) about mega menus

    At this point, hopefully, you have a solid understanding of how to create and add a mega menu in WordPress. But let’s take a moment to wrap up with some Frequently Asked Questions (FAQs). 

    Can I add images and icons to a WordPress mega menu?

    Yes, you can add images and icons to a WordPress mega menu. Some plugins come with built-in support for this. Alternatively, you can also add images and icons by editing your website’s code.

    Can I add a mega menu to my WordPress sidebar?

    Yes, you can add a mega menu to your WordPress sidebar. There are a few different plugins that you can use to add a mega menu to your sidebar. Most plugins that let you display menus as widgets will also let you add them to your sidebar. 

    Start customizing your WordPress menus

    Menus play an essential role in your website’s design and functionality because they can be used to improve the look and feel of any site. So, if you have a large WordPress website with a lot of content and pages, you might want to consider adding a mega menu. 

    As we discussed in this post, there are three main methods you can use to create a mega menu in WordPress. One is to use your theme’s options for adding a mega menu. The second is to code one manually. If neither of those are possible, or if you just want to save some time, you can try out a mega menu plugin like Max Mega Menu, QuadMenu, or ElementsKit.

    Do you want to further enhance the performance of your WordPress site? In addition to providing easy, automatic backups and other WordPress security features, Jetpack can help boost the speed and UX of your site!

  • How to Secure Your WordPress Login Page (Complete Guide)

    A critical factor in running a successful WordPress website is implementing monitoring and security measures. After all, a hacked site can cause a lot of headaches — regardless of whether your site is used for business or personal purposes. It can impact your revenue, risk your visitors’ information, and wreck your reputation. 

    A typical entry point for hackers is the WordPress login page, which will be our focus today. What follows is a rundown of 14 ways to harden WordPress login security so malicious actors won’t breach your site. 

    Why secure your WordPress login page?

    Before we get to the list of security tips, let’s first briefly discuss why you might want to secure your WordPress login page — from brute force attacks or otherwise — in the first place. 

    • WordPress is very popular, so cybercriminals are often looking for new vulnerabilities that they can exploit over a wide number of sites.
    • Because hackers are familiar with WordPress, they know when a website is outdated and which security flaws are present in each version. 
    • To gain access through a login page, hackers don’t always need advanced development knowledge or special skills.

    Keeping a secure WordPress login page is essential for your website’s long-term success and overall performance. 

    How to harden your WordPress login security

    So you know why you need to create a secure WordPress login, but how can you accomplish it? We’ve gathered 14 ways to secure your WordPress login page properly so you don’t have to leave the safety of your data or customer info to chance. 

    1. Install a WordPress security plugin

    You can get a handle on most security concerns in just a few minutes by installing a high-quality WordPress security plugin. While many plugins specialize in protecting specific aspects of a site or against certain kinds of attacks, a more comprehensive approach is best for the average site.  An all-in-one security plugin will include features like audit logs, malware scans, firewalls, and login security tools in a single solution.

    And at the top of the list of our recommendations is Jetpack Security.

    Jetpack Security homepage

    Jetpack Security works by taking care of numerous security tasks automatically. And with both free and paid features, a level of protection is available to everyone with a WordPress website. It has a strong range of features that can work to prevent security breaches, but also help you diagnose and recover from any incidents you experience. These include:

    • Brute force attack protection
    • Spam prevention
    • Malware scanning 
    • Downtime monitoring 
    • Backups 
    • Activity logs 
    • Two-factor authentication

    While you can move through the rest of the steps outlined here on your own, using a plugin like Jetpack Security will streamline the login hardening process. 

    2. Change and hide your WordPress login URL

    Another way to make your login page more secure is to hide it from prying eyes. By default, the login address for all WordPress sites is http://www.yourwebsitename.com/wp-admin, which is basically like giving a burglar your home address. So anything you can do to obscure this is a good idea. 

    Changing the WordPress login URL is a great way to put barriers in place to make the hacker’s job more difficult. You can find a plugin that does this for you, but you can also do it yourself. 

    For this, you’ll need FTP access to your website. Once you’ve got that, just follow the instructions in our tutorial: WordPress Login URL: How to Find, Change, and Hide It

    3. Use a strong password to log in to WordPress

    You can also bolster your site security by upgrading to a stronger password. Implementing strong password measures makes it much less likely that a hacker or bot will be able to “guess” it. Though “fluffy21” might be easy to remember, it’s much too easy to guess — especially if “Fluffy” is the name of a beloved pet. 

    Instead of picking passwords based on names, ages, or pets, creating one that combines letters and numbers, uppercase and lowercase letters, and a couple of symbols are much better. You can build a strong password in a couple of ways: 

    • A built-in strong password tool. WordPress has a strong password tool that encourages you to create a stronger password than what you may be naturally inclined to choose.  
    • A password generator. Many password generators make it easy to develop a strong password that’s not intuitively guessable. 
    • A password keeper/manager. The only trouble with strong passwords is that they’re hard to remember. Using a password keeper or management tool eliminates this issue. Popular options include LastPass, DashLane, and 1Password.
    LastPass homepage

    4. Password protect your login page

    By default, anyone can access the login page for your WordPress site. And while you can hide or change your login URL, as we previously discussed, hackers may be able to find it if the wp-admin folder is still accessible. 

    That’s why adding another layer of protection before accessing the login page is a good idea. And you can accomplish this by password protecting the wp-admin folder. If your web host uses cPanel, this process is relatively easy. 

    Log in to your hosting provider account, access the cPanel, then go to the Directory Privacy folder. 

    While viewing your site’s files, navigate to public_html/wp-admin. There should be a visible checkbox that reads password protect this directory. Check the box. Then create a new username and password for accessing the wp-admin folder. Save your changes.

    Try to log in to your site as usual. You should now have to input another set of credentials before being granted permission to log in to WordPress. 

    Note: this process would be identical, even if you moved the location of your login page. Password-protect the folder in which your login page resides, even if it’s not wp-admin. 

    5. Limit the number of login attempts

    Another thing you need to do to secure the WordPress login page is to limit login attempts. Hackers can use bots to make repeated login attempts until they crack the code — i.e., figure out your password and gain access to your website. Unfortunately, WordPress allows unlimited logins by default.

    To prevent this potential access point, you can limit login attempts. A plugin is the best way to accomplish this. In fact, Jetpack Security offers Brute Force Attack Protection as a part of its all-in-one security solution. 

    number of brute force attacks blocked by Jetpack

    Brute force attacks can be incredibly disruptive to how your website functions, even before hackers gain access. For instance, they can slow your site down considerably — or cause it to stop responding altogether. Repeated login attempts may eventually succeed and the hacker can then go on to inject malware, insert links, or otherwise cause mayhem. These attacks can also put your personal information at risk. 

    The Brute Force Attack Protection feature included in Jetpack Security provides the tools necessary to block attacks and prevent malicious hackers from gaining access to your data. It works by blocking malicious IPs before they ever get to your site. It also provides a count of total attacks and enables you to whitelist known IP addresses.

    6. Add a security question to your WordPress login form

    You can also extend the security of your login form by adding a security question (or two) to the login process. So, instead of just inputting a username and password, users must also answer a security question to gain access. 

    This single step makes your website much more difficult to hack. And it’s relatively easy to implement. 

    The No-Bot Registration plugin is a great way to accomplish this. Download it by going to Plugins → Add New, then type in the plugin’s name. Once it appears, download and activate it. 

    No-Bot Registration plugin

    Once activated, go to Settings from the WordPress dashboard. Here you can set up the plugin and configure the rules for when security questions are used (on registration, login, or forgotten password pages). 

    This is much more user-friendly than a CAPTCHA, as it only requires answering a simple and logical question.

    7. Add two-factor authentication to WordPress

    Next, you can enable two-factor authentication. Many websites and apps use this popular security option, including Gmail. It works by sending an SMS code to your phone that you’ll need to input before you can complete the sign-in process. 

    This is used to verify your identity and ensure access is only granted to authorized users. Every layer of authentication that you add to the process makes it significantly more difficult for someone to hack your site. Even if a bad actor gets access to your login information, it’s unlikely that they’ll be able to thwart the 2FA process.  

    The easiest way to add two-factor authentication to WordPress is using a 2FA plugin. Several security plugins include this feature, but again, Jetpack Security comes through strong with Secure Authentication

    Secure Authentication allows you to log in using your standard WordPress.com credentials and also disable or bypass the default login form entirely. Plus, you can opt to make two-factor authentication a requirement for all users to give your site further protection. 

    8. Install an SSL certificate on your WordPress site

    Another avenue of protection is to install an SSL certificate. Getting an SSL certificate for free is easy, so it’s a security measure no one should skip over. 

    SSL is how most websites secure their data. And you can tell when a site is secure as the “HTTP” in the URL field will have an “S” added, so it reads “HTTPS.” Browsers will often use other visual indications, like a green lock icon, to let visitors know your site has an active SSL certificate in place. 

    Beyond the security implications, visitors may not continue to navigate your site if they see that it’s unsecured. Plus, sites with SSL certificates tend to rank better in search engines and some browsers will even display a warning to visitors if you don’t have one. 

    Don’t skip this step. Learn how to get a free SSL certificate.

    9. Disable WordPress login hints after failed login attempts

    Login hints can be genuinely helpful for real WordPress users, but they can sometimes give away too much information about your username and password to hackers. When you attempt to log in to a WordPress site and get the username wrong, you’re met with an error that reads, “The username is not registered on this site. If you are unsure of your username, try your email address instead.” 

    error message about a username that's not registered

    Something similar happens if you type in the right username or email address, but the wrong password. 

    incorrect password error

    To remove login hints, you need to add a few lines of code to your site’s functions.php file. 

    function no_wordpress_errors(){
    return 'There is an error.';
    }
    add_filter( 'login_errors', 'no_wordpress_errors' );

    When someone — real or bot — inputs an incorrect username or password, they’re greeted with the message, “There is an error,” rather than the default. 

    10. Keep your WordPress install & plugins up-to-date

    Hackers also find entry points into WordPress sites via outdated installations. Every time WordPress is updated, all the bug fixes and security holes that were repaired are posted online. If your installation is outdated, hackers have an instruction manual for breaching your site. 

    When new WordPress core updates roll out, you must back up your site and install the update as quickly as possible. 

    But that’s not all you need to be mindful of. Third-party software — i.e., plugins and themes — are potential weak points, too. They’re even more essential to keep updated as plugins and themes are made by various development companies with different standards and approaches. 

    This is also why you must be selective about the plugins and themes you install. If your go-to social sharing plugin hasn’t been updated in two years, it may be time to find one that updates regularly.

    11. Hide your WordPress version number

    A quick way to improve the login page’s security is to hide the WordPress version number. At the very least, this will make hackers look more thoroughly to determine which security holes to exploit. And you can remove it rather easily. 

    Locate the functions.php file and (after you’ve backed up your site) add the following line of code to the file: 

    remove_action('wp_head', 'wp_generator');

    12. Hide your WordPress login username

    Another step you can take is to hide your WordPress login username. A lot of the time, the emphasis is on creating a super-secure password — which is excellent — but you need to think of your username, too. Often, it’s available to the public — an opportunity hackers can exploit.

    The quickest way to hide your username from the view of prying eyes is to remove it from appearing on blog posts and within author archives. 

    To remove your username from blog posts, you simply need to go to Users → Profile → Nickname while logged into WordPress. From here, you can change the nickname so that your username is no longer visible to site visitors. So instead of seeing “blogperson02,” they’ll see your first name, first and last name, or another nickname you configure. 

    To remove your username from appearing in the author archives, you’ll need an SEO plugin like Yoast SEO

    Install Yoast like any other plugin, then go to the SEO → Search Appearance → Archives menu in the WordPress dashboard. There’s an option here to disable author archives. Do this, then click Save Changes

    disabling author archives with Yoast

    13. Shorten your WordPress auto-logout timer

    It’s common to stay logged in to your accounts when you use them often. But this can create potential breaches, especially if several people have accounts on your site. Implementing an auto-logout timer is a great way to close those security holes. 

    When a session is left unattended, it will be logged out automatically. By default, WordPress will log out users after 48 hours. Checking the “Remember Me” box keeps users logged in for 14 days. You can change these time frames a bit by using a third-party plugin. One that’s dedicated to this feature is Inactive Logout

    Once installed, navigate to Settings → Inactive Logout → Basic Management. Then select the duration of idle time you want to trigger a logout.

    14. Delete old and unused WordPress user accounts

    Lastly, deleting accounts no longer in use can also help improve your WordPress security. Having several open accounts on your site means each is an access point to private data. And if you’re not regularly updating passwords for these accounts, they could present significant weaknesses. 

    To avoid this, delete old and unused accounts. Make doing so a part of your regular site maintenance plan. 

    You should also only provide privileges to users who need them. Not every user needs Editor or Admin privileges.

    Likewise, keep an eye on the accounts listed. Sometimes, hackers will create a fake account. If one appears, delete it right away and bolster the rest of your security measures. Learn what to do if your WordPress website has been hacked

    Secure your WordPress login page

    Owning a website means bearing a level of responsibility for its content and users. Of course, this is doubly the case if you collect customer information. But no matter how you use your WordPress site, bolstering security around the login page is a great way to keep your data safe for the long haul. 

    And the tips presented here should help you become efficient at WordPress security maintenance in no time. 

    Ready to take the first step? Get started with Jetpack Security.

  • Guide to WordPress Brute Force Protection (+4 Best Plugins)

    Brute force attacks happen when hackers try to access your site files by constantly trying new passwords. If they succeed, they could steal your private data, add malware, or even take down your website completely.

    Fortunately, you can easily prevent these brute force attacks. By simply updating your login information or enabling two-factor authentication, you can make it harder for hackers to enter your website. Another effective method is to install a brute force protection plugin like Jetpack.

    In this post, we’ll explain what brute force attacks are and how you can prevent them. Then, we’ll recommend the best plugins for brute force protection. 

    An introduction to brute force attacks

    Brute force attacks happen when hackers use trial and error to access your website. This usually involves guessing your login information using automated software. Essentially, hackers will try many different passwords and username combinations until they find yours.

    Other forms of hacking usually exploit vulnerabilities on your WordPress website. For instance, hackers can access your data through out-of-date software, plugins, or themes. Even an old PHP version can leave your site vulnerable.

    On the other hand, brute force attacks rely on weak login credentials. If you have a guessable password like “123456,” hackers can use automated software to enter your site.

    Brute force attacks are more common than you might think. In fact, they’re becoming more of a threat than ever before. Towards the end of 2021, the rate of brute force attacks increased by 160 percent.

    If your website suffers from a brute force attack, hackers can:

    • Steal your private data
    • Add malware to your site
    • Decrease your credibility and/or search rankings
    • Remove your content completely

    Needless to say, you’ll want to protect your website against these dangers. Although the default WordPress settings don’t offer extra protection against brute force attacks, you can take some steps to prevent them from happening.

    How to block brute force attacks on WordPress

    Now that you know about brute force attacks, let’s discuss how to protect your WordPress website from them. 

    Step 1: Update your username

    Since brute force attacks involve guessing login information, you can secure your WordPress website by updating your credentials. First, you should consider choosing a unique username.

    In older versions of WordPress, the default username was “admin.” Now, new account holders can choose their usernames when they first log in. But you might need to update your username if you have an older account.

    To see what your current username is, open your WordPress dashboard. Then, navigate to Users → Profile. You’ll find your username under the Name section.

    viewing your username in WordPress

    If you already have a unique username, skip to the next steps. If you see admin as your username, you’ll likely want to change it. Unfortunately, you won’t be able to directly edit your profile in the dashboard.

    One of the simplest ways to change your WordPress username is to create a new user. Then, you can assign it a unique username and give it the same administrative privileges. The only downside of this method is that you’ll have to use a new email address.

    First, go to Users → Add New. On this page, create a new username and enter your email address. Be sure to set the user role as Administrator.

    creating a new user in WordPress

    If you want to use the same email address, you can simply add a plus sign with additional letters after the username. For instance, if your normal email address is “exampleemail@gmail.com”, you can use “exampleemail+wordpress@gmail.com.” WordPress will consider this a new email address, but it will use the same inbox.

    Next, you’ll need to log out of WordPress and use the new username to log back in. Then, go to the All Users page and click delete underneath the admin user role.

    During the deletion process, you’ll need to move its content to the new username. To do this, select Attribute all content to [new username]. This is a critical step — otherwise your content will be deleted.

    attributing content to a new user

    Finally, click on Confirm Deletion. If you want to start using the same email address assigned to the admin username, you can update that now. 

    If you want to change your existing username, you’ll need to do this through your WordPress database. Note that making changes to the database can be dangerous, so it’s best to do this if you already have experience in this area. To change your username, take the following steps:

    1. Click on the phpMyAdmin tool in the cpanel of your hosting provider. The exact location can vary based on your host.
    2. Click on your WordPress site’s database in the left-hand panel. This will open up your database tables.
    3. Click on the wp_users table. The prefix “wp_” is set by default, but your host may have changed it to something else. For example, the table may be called “janb_users.” 
    4. Find the username you want to change on the right side — in this case, “Admin” — and click Edit.
    5. In the user_login field, type whatever new username you’d like to set.
    6. Click the Go button.

    Now, you can log in with the new username! 

    Step 2: Use a strong password

    Another way to protect your site against brute force attacks is to use a strong password. Since hackers use botnets (robot networks) to randomly guess passwords, it can help to have a one with a unique string of numbers and letters.

    These are the characteristics of a strong password:

    • It has between ten and 50 characters
    • It uses uppercase and lowercase letters
    • It uses numbers and special characters
    • It’s unique from passwords used for other accounts or websites

    To update your WordPress password, navigate to Users → Profile. Then, scroll down to Account Management.

    Next, click on Set New Password. Once you do this, WordPress will automatically generate a strong password for you. This will be a complex credential that’s hard to guess.

    generating a new password in WordPress

    You can use this password or create your own. As you type, WordPress will indicate how strong or weak your new password is.

    weak password notice

    To make sure your new password is secure and random, you can use a password generator. This tool can automatically create a password with uppercase and lowercase letters, as well as numbers and symbols.

    After pasting your new password into the text box, scroll to the bottom of the page. Click on Update Profile to save your changes. For maximum protection against brute force attacks, consider changing your WordPress password every four months. 

    Step 3: Add two-factor authentication

    When you log in to your WordPress site with just a password, this is called single-step authentication. You can also implement two-step, or two-factor, authentication.

    With two-step authentication, you’ll provide two forms of verification to log in to your site. You’ll still enter your password, but you must also confirm your identity on your phone or another device.

    Jetpack makes it easy to add secure authentication to your website. First, install and activate Jetpack in WordPress. Then, in the Jetpack dashboard, click on Manage security settings.

    Scroll to the bottom of the page and find the WordPress.com login section. Here, turn on Require accounts to use WordPress.com Two-Step Authentication.

    turning on two-factor authentication in WordPress

    Then, find the Two-Step Authentication page in the Security tab. You can choose to set up your two-factor authentication with an app or SMS.

    setting up two-factor authentication

    If you choose the first option, you’ll need to download an app like Google Authenticator (iPhone | Android). WordPress will provide a QR code, which you can scan with the app and then enter the generated code.

    QR code for two-factor authentication

    When you click Set up using SMS, you’ll have to enter your phone number. Once you verify the code sent to your phone, you can start using two-factor authentication.

    setting up two-factor authentication via text

    Now you can verify your identity every time you log in to WordPress! This setup can offer increased protection against brute force attacks.

    Step 4: Install a brute force attack protection plugin

    After taking some basic steps to protect your login page, you can also benefit from installing a brute force protection plugin. The right tool can automatically block brute force attacks before they impact your site.

    As you’re trying to choose the best plugin for brute force protection, you should keep a few factors in mind. To protect your website, you’ll want to find a plugin that works behind the scenes to prevent and stop brute force attacks.

    Here are some basic features you should look for in a brute force protection plugin:

    • Limited login attempts
    • Two-factor authentication
    • A firewall
    • IP address blocklisting

    Additionally, many brute force protection plugins provide general security for your website. For example, Jetpack Security not only prevents brute force attacks but performs malware scans, creates automatic backups, and screens for spam.

    Jetpack is also one of the easiest brute force protection plugins to configure. After installing and activating Jetpack, you can turn on Brute force protection in the dashboard.

    turning on brute force attack protection in WordPress

    With this one click, you can enable Jetpack to prevent brute force attacks!

    The four best WordPress plugins for brute force attack protection

    Installing a plugin can be the most effective way to prevent brute force attacks. Still, you might not know which option is right for your website. Although there are many brute force protection plugins, four stand out as the best! 

    1. Jetpack

    Jetpack homepage image

    When you download Jetpack, you can access brute force attack protection and many other security features. Jetpack also offers performance and growth tools, so you can choose a plan that’s perfect for your needs. 

    If brute force attack protection is all you need, the great news is that it’s completely free!

    Key features of Jetpack’s brute force attack protection:

    • One-click activation
    • Allowed IPs
    • The ability to see the number of blocked attacks
    • Two-factor authentication

    Pros:

    • If you’re accidentally locked out of your login page due to Jetpack’s protection measures, you can send a special login link to your email address.
    • Jetpack compares each new IP address to its global database of malicious addresses.
    • With Jetpack, you can also access extended security measures, like downtime monitoring, site backups, and malware scans.

    Cons:

    • Jetpack requires you to connect to a WordPress.com account. 
    • If your server is misconfigured, it may not return an IP address, which can disable the brute force protection feature.

    Ease of use:

    With Jetpack, you can implement brute force attack prevention in a single step. After installation, just visit the main Jetpack dashboard to turn on the feature. Then, you can simply allow Jetpack to do the work without any maintenance.

    Pricing:

    Any WordPress user can start using brute force protection for free with Jetpack. 

    2. Sucuri

    Sucuri homepage hero image

    Sucuri is a tool specializing in website monitoring, protection, and performance. By implementing a Web Application Firewall (WAF), Sucuri can block brute force attacks on your website. 

    Key features:

    • Web Application Firewall (WAF)
    • Limits login attempts
    • Automated tools to block bots
    • Allowlisting
    • Two-factor authentication, CAPTCHA, and passcodes

    Pros:

    • Sucuri includes geo-blocking so that you can block all visitors from specific IP ranges. This feature can prevent brute force attacks from certain countries.
    • Sucuri’s firewall sanitizes traffic before it even reaches your WordPress website.

    Cons:

    • The free version of Sucuri does not provide brute force prevention. To access a WAF, you’ll need to purchase a subscription. 
    • Although Sucuri is an effective option for brute force attack prevention, it’s expensive. There are other free plugins with similar features.

    Ease of use:

    Compared to other plugins, Sucuri has a more complicated setup process. To start using Sucuri, you’ll need to purchase a plan and set up a firewall. This involves integrating your cPanel account and manually changing your DNS records.

    Pricing:

    With Sucuri, brute force protection requires a premium plan. This feature comes with all of its subscription options, which start at $199.99 per year.

    3. Wordfence Security

    Wordfence plugin homepage

    Wordfence Security is a plugin that provides a firewall and security scanner all in one. This tool offers many forms of login security, including two-factor authentication, allowlisted IP addresses, and reCAPTCHA keys. 

    Key features:

    • Limits login attempts
    • Records successful and failed login attempts
    • Continually updated IP blocklist
    • Manual blocking tools
    • Two-factor authentication and reCAPTCHA 

    Pros:

    • Since it comes with a Web Application Firewall, Wordfence can identify and block malicious traffic on your site.
    • If any administrative passwords are compromised, you can block any logins from that user.
    • Wordfence performs scheduled security scans every three days when you’re using the free version.

    Cons:

    • For the free version of Wordfence, the generated data is delayed by 30 days. To receive real-time threat intelligence, you’ll have to upgrade to a paid plan.
    • The free plugin also doesn’t let you manually schedule scanning.

    Ease of use:

    Wordfence provides a very simple setup process for first-time users. After installing and activating the free plugin, it will prompt you to enter an email address where Wordfence can send alerts. Then, you can add brute force protection by implementing a firewall and login security features.

    Pricing:

    Even the free version of Wordfence Security comes with built-in brute force protection for unlimited sites. If you need advanced support, you can purchase a premium plan. These start at $99 per year.

    4. iThemes Security

    iThemes security hero image

    iThemes Security ensures that you can start protecting your website from brute force attacks in under ten minutes. With this plugin, you can quickly customize your login page with two-factor authentication and password requirements. Plus, iThemes will automatically add your site to its Brute Force Protection Network.

    Key features:

    • Maximum login attempts for both hosts and users
    • Local and network brute force protection
    • Graphs of recent brute force attacks
    • The ability to set password requirements for all users
    • Two-factor authentication

    Pros:

    • One of the main benefits of iThemes Security is its Brute Force Protection Network. It records suspicious activity across one million different websites, identifying malicious IPs.
    • You can set a maximum number of login attempts for your website, which can prevent automated login guessing.

    Cons:

    • If you want to add extra security features to your login page, like a reCAPTCHA field, you’ll need to purchase the premium plugin.
    • The free plugin does not include real-time security reports.

    Ease of use:

    After installation, the iThemes plugin will take you through a step-by-step setup process. Here, you can enable both local and network brute force protection. You can also choose to add two-factor authentication for extra security.

    Pricing:

    iThemes Security is a free WordPress plugin. If you’d like to use the real-time security dashboard, you can purchase the premium version, starting at $80 per year.

    Comparison of the top plugins that block brute force attacks

    Jetpack Sucuri Wordfence Security iThemes Security
    Limit login attempts Yes Yes Yes Yes
    Two-factor authentication Yes Yes Yes Yes
    Real-time reports Yes Yes Yes, with premium extension Yes, with premium extension
    IP blocking Yes Yes Yes Yes
    reCAPTCHA Yes Yes Yes Yes, with premium extension
    Network brute force protection Yes No No Yes
    Ease of use One-step activation Requires manually changing DNS records Simple tabs for managing your firewall, scans, and login security Setup wizard to configure login security and user groups
    Price Free $199.99-$499.99 per year Free-$950 per year Free-$199 per year

    Frequently asked questions (FAQs)

    Now that you know all about brute force attacks and how to prevent them, let’s answer some questions!

    How much does brute force protection cost in WordPress?

    Brute force protection can be free if you download a brute force protection plugin like Jetpack. Other providers like Sucuri require a paid subscription.

    How can I set up brute force attack protection in WordPress?

    Setting up brute force protection will vary based on the provider you choose. Some options require you to configure a firewall, which can be complicated. Alternatively, Jetpack is a plugin that makes this process simple. After activation, you can turn on brute force protection with just one setting. 

    What else can I do to secure my WordPress site?

    There are many general security measures you can take to protect your website. First, consider performing consistent updates for the core software, themes, and plugins. You can also keep your data secure by backing up your website.

    Another simple security measure is blocking spam. It’s also a good idea to delete unused plugins and monitor your site activity. Finally, make sure you regularly scan for malware and take immediate action if anything is found. 

    Secure your website against brute force attacks

    Without the right protection, your website can fall prey to brute force attacks. Fortunately, a brute force protection plugin is a simple addition to your site. With the right security measures, you can stop hackers from stealing your data.

    To review, here’s how to implement brute force attack protection in WordPress:

    1. Update your username.
    2. Use a strong password.
    3. Add two-factor authentication.
    4. Install a brute force attack protection plugin like Jetpack.

    After following these steps, you’ll be able to keep your information private and secure! Then, it’s just a matter of keeping your software up to date, backing up your files, and monitoring your website for spam and suspicious activity.