Category Archives: WordPress Plugins

Ads.txt Admin Review: How To Add ads.txt File To WordPress

Need to add an ads.txt file to WordPress? Or, have no idea what an ads.txt file is? If either of those situations applies to you, you should read this Ads.txt Admin review because I’m going to: Explain what ads.txt is and whether or not your WordPress site needs it. Show you how you can use ... Read moreAds.txt Admin Review: How To Add ads.txt File To WordPress

The post Ads.txt Admin Review: How To Add ads.txt File To WordPress appeared first on Learn WordPress with WPLift.

5 Best WordPress Image Compression Plugins Compared

Are you looking for the best WordPress image compression plugin for your website? Image compression plugins allow you to easily optimize images in WordPress for better speed and performance. In this article, we have compared the best image compression plugins for WordPress.

Best WordPress image compression plugins

When Do You Need a WordPress Image Compression Plugin?

Images are larger in size than plain text which means they take longer to load and can slow down your website.

However you’ve probably heard the saying: “a picture is worth a thousand words”. Images make your content more engaging and interactive.

To improve your WordPress website speed, you need to optimize your images for the web. The best way to do this is by using Photoshop or another image editing software before you upload the image to WordPress. This gives you a lot more control on the quality of images on your website.

However, not all users are comfortable working with image editing program. For some optimizing every single image they upload sounds like a lot of work.

Luckily, there are several WordPress image compression plugins that can help you with that. These plugins optimize your images by automatically compressing them and using the smaller sized version on your website.

That being said, let’s take a look at the best WordPress image compression plugins, and how they stack up in terms of image optimization, performance, and quality.

1. reSmush.it

reSmush.it

reSmush.it is the best WordPress image compression plugin. It allows you to automatically optimize images on upload as well as offer a bulk optimization option for older images.

It uses the reSmush API to optimize images and allows you to choose the optimization level for your uploads. The downside is that it doesn’t have different compression levels. It also limits optimization to uploads lower than 5MB in size. You can exclude individual images from compression in case you need to add an image in full size.

2. EWWW Image Optimizer

EWWW Image Optimizer

EWWW Image Optimizer is a great option for WordPress image compression plugin. It is easy to use and can automatically optimize images you upload on the fly. It can also compress and optimize your previously uploaded images in bulk.

It performs all compression on your own servers which means you don’t need to sign up for an account to get an API key. It can also optimize images generated by other WordPress plugins and stored outside your media library folders. It doesn’t require an account to use the plugin, but you can sign up for their API to get additional features.

3. Compress JPEG & PNG images

Compress JPEG & PNG images

Compress JPEG & PNG is created by the team behind TinyPNG, and you will need to create an account to use the plugin. You can only optimize 100 images each month with the free account. It can automatically compress images upon upload, and you can also bulk optimize older images.

The plugin settings allow you to choose which image sizes you want to optimize. Additionally, you can also set a maximum size for your original uploads. Images larger than that size will be automatically resized by the plugin.

4. ShortPixel Image Optimizer

ShortPixel

ShortPixel Image Optimizer is another useful WordPress image compression plugin. It requires you to get an API key by providing your email address. The basic free account allows you to compress up to 100 images per month, and you will need to upgrade to their paid plans to increase this limit.

It starts compressing images as soon you as activate plugin and stores your original images in a separate folder. It also allows you to compare the original file with the compressed version to see the quality difference. ShortPixel is packed with advanced features and gives you the ability to choose comparison formats.

5. WP Smush

WP Smush

WP Smush is another popular WordPress image compression plugin. It automatically compresses images on upload and can also be used to compress and optimize your older image files. You can also set maximum image resolution, and your images will scale down to more reasonable sizes while being compressed.

The free version of plugin doesn’t require you to create an account to use their API key. The bulk optimization feature allows you to optimize up to 50 images at a time, and you can rerun the bulk optimizer to compress more images.

The free version of the plugin doesn’t perform that well. See our review of WP Smush with pros and cons.

Comparison Test Scores for Image Compression Plugins

Now that you know about the different WordPress image compression options, let’s take a look at how they compare against each other in terms of performance.

To measure this, we ran test by uploading the same image using each of these plugins.

Testing JPEG Image Compression

We used the following JPEG image for our tests, it is 118 KB in file size.

JPEG test image

We didn’t touch any of the plugin settings and tested the compression with out of the box settings. Here are our test results:

PluginCompressed SizeSaved (%)Method
reSmush.it76 KB30.59%Lossless
EWWW Image Optimizer112 KB5%Lossless
Compress JPEG & PNG images114.7 KB2.8 %Lossy
ShortPixel Image Optimizer69.2 KB41.94%Lossy
WP Smush112 KB5%Lossless

Testing PNG Image Compression

Next we wanted to test a PNG image to see how our contenders optimize it.

We used the following PNG image for the test, and it is 102 KB in file size.

PNG test image

Here are our test results:

PluginCompressed SizeSaved (%)Method
reSmush.it36 KB63.8%Lossless
EWWW Image Optimizer97.5 KB1.9%Lossless
Compress JPEG & PNG images34.364%Lossy
ShortPixel Image Optimizer37 KB63.5%Lossy
WP Smush99 KB2.9%Lossless

Which is The Best Image Compression Plugin for WordPress?

If you are not looking for flexible options in your image compression plugin, then reSmush.it gives you the best results in terms of performance by making the real difference in image file size.

If you are willing to pay for image compression, then you can try ShortPixel which performed really well in our tests.

EWWW Image Optimizer is a great plugin with flexible settings, but you will need their paid API key to get access to compression levels which make the real difference.

We hope you found this comparison of best WordPress image compression plugins useful. You may also want to see our list of common image issues in WordPress 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 5 Best WordPress Image Compression Plugins Compared appeared first on WPBeginner.

How to Create an Interactive Poll in WordPress (Step by Step)

Do you want to create an online poll on your WordPress site?

Polls are an interactive way to engage your audience while getting useful information from them. You can get feedback from your users and find out what they like.

In this article, we will show you how to easily create and add a poll in your WordPress.

How to Create an interactive poll in WordPress

Which Tool to Choose for Adding a Poll in WordPress?

Adding interactive polls to your website is a great way to engage users, as it instantly grabs their attention. You can generate leads using polls and, at the same time, collect valuable feedback from your audience.

That said, there are plenty of plugins and online tools that allow you to embed polls on your WordPress site. Many of them require you to create an account, some store data on their own servers, and others have a terrible user experience.

If you are looking for a good user experience with full control of poll data, then you’ll need WPForms. It is the best WordPress form builder plugin and includes powerful surveys and polls addon.

With WPForms, you’ll be able to do the following:

  • Create polls in WordPress using a drag-and-drop form builder
  • Gather poll results on your own websites
  • Show votes count when user submit their vote
  • Display poll anywhere on your website
  • Show poll results anywhere on your website

With that, let’s look at how to easily create online polls in WordPress using WPForms.

Creating Online Polls in WordPress

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

You will need the WPForms Pro plan because it includes the survey and polls addon. WPBeginner users get an additional discount by using the WPForms coupon code. There is also a WPForms Lite version you can try for free.

Upon activation, you need to visit the WPForms » Settings page to enter your license key. You can find this information in your WPForms account.

Entering the WPForms license key

Next, you need to visit WPForms » Addons page and scroll down to the Surveys and Polls addon.

Go ahead and click on the ‘Install’ addon button.

Install surveys and polls addon

Now you are ready to create an online poll.

You can start by going to WPForms » Add New page to create a new form. First, you need to provide a title for your poll form and then select the ‘Poll Form’ template.

Select the poll form template

This will launch the WPForms drag-and-drop form builder interface.

You will see a pre-made poll form template with example fields already added to the form.

Edit your poll form template

There are options to add new form fields from the left column. All you have to do is drag and drop the field you’d like to add to the form.

Besides that, you can just point and click to edit any field, rearrange them, or remove them.

For example, if you click the poll question in the template, then you will see more options in the menu on your left. Simply rearrange the order, and edit their titles, labels, and more.

Rearrange poll question order

Next, you need to click on the Settings button from the left menu and then go to the ‘Surveys and Polls’ tab. Here you can enable or disable the poll results option.

By default, the WPForms poll template will display poll results to users after they submit their votes. If you disable this option, then users will not see the poll results.

Enable survey and poll results option

On the other hand, you can show users a custom message or redirect them to another page or URL.

Simply go to the ‘Confirmation’ tab. Here, you can choose the Confirmation Type from the dropdown menu.

Go to confirmation settings

Once you have created the poll form, go ahead and click on the ‘Save’ button to store your form settings.

Adding The Poll to Your WordPress Website

WPForms makes it easy to add your online poll anywhere on your website, including posts, pages, custom post types, and sidebar widgets.

You can click the ‘Embed’ button in the form builder to add your poll form. Once you do that, a new popup window will open. You can select an existing page or create a new one to embed your form.

Embed a form in page

Let’s select the ‘Create New Page’ button for this tutorial.

In the next step, you’ll need to enter a name for your page. After that, you can click the ‘Let’s Go’ button.

Enter name for your new page

You should now see your poll form embedded in the WordPress content editor.

Another way of adding your form is by using the WPForms block. Simply click the ‘+’ button to add the WPForms and select your form from the dropdown menu.

Add a WPForms block in wordpress

Next, you’ll see a preview of your form.

You can save or publish your post/page and visit your website to see your poll in action.

View poll form preview

You can also add your poll to a sidebar or widget-ready area.

To do that, you need to go to the Appearance » Widgets page and add the WPForms widget block to a sidebar where you want to display the poll.

Add WPForms widget block

In the WPForms widget block, you need to select the poll form you created earlier.

Don’t forget to click the ‘Update’ button to store your widget settings. You can now visit your website to see your online poll displayed in a sidebar or another widget-ready area.

View poll form in sidebar

Viewing Live Poll Results

If you have enabled poll results, then your users will see the results after submitting their votes.

View your poll results

You can also view poll results at any time without submitting a vote.

Simply visit WPForms » All Forms page and click on the ‘Survey Results’ link below your poll form.

Click the survey results option

This will take you to the poll results page, where you will see poll responses in an interactive chart.

You can change the charge type and export the results in JPEG, PDF, and print formats.

See poll results in dashboard

Embed Poll Results Anywhere in WordPress

WPForms also allows you to easily embed your online poll results anywhere on your website. This is particularly useful if you have disabled poll results and want to share them later.

First, you will need to find out your poll form’s ID. You can do this by going to WPForms » All Forms page and looking for the shortcode next to your poll form.

View form shortcode

In the shortcode, you will find your poll’s ID number. For example, our test poll’s ID is 76, as shown in the screenshot above.

Next, you need to find out the field ID. This is the field in your form for which you want to show the results.

Simply edit your poll form and click on the poll field. You will find the field ID in the left column.

View the field ID

Now that you have both required IDs, you can go ahead and add the poll results shortcode like this:

Don’t forget to replace the form ID and field ID values with your own. You can use this shortcode in WordPress posts, pages, and text widgets.

Here’s a preview of what your poll results will look like:

Preview of form results

We hope this article helped you create an interactive poll in WordPress. You may also want to see our guide on how to start a WordPress blog and the best email marketing services.

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 an Interactive Poll in WordPress (Step by Step) first appeared on WPBeginner.

How to Fix the Mixed Content Error in WordPress (Step by Step)

Are you seeing the mixed content error in WordPress? Mixed content error in WordPress is caused by incorrect HTTPs/SSL settings. Often times it doesn’t affect your website’s functionality, but it can have adverse affects on your website’s SEO and user experience. In this article, we will show you how to fix the mixed content error in WordPress.

How to fix the mixed content error in WordPress

What is Mixed Content Error in WordPress?

It is highly recommended to add HTTPS / SSL in WordPress because after July 2018 Google Chrome will mark all http versions of website as insecure.

SSL adds an additional security layer around data transferred from your website to users’ browsers. Search engines like Google recommend using SSL on your website as well.

All best WordPress hosting companies are now offering free SSL as part of their packages. If your hosting company doesn’t offer that, then you can get free SSL through Let’s Encrypt for your WordPress site.

If you have correctly implemented SSL on your website, then you will see a green padlock icon next to your website’s URL in the browser address bar.

Secure content sign

On the other hand if your HTTPs/SSL settings are not properly setup, then you will see an info sign or a broken padlock icon in the address bar.

Not fully secure due to mixed content

This indicates that while your website is using a SSL certificate, some content on your website is still served from non HTTPS urls.

You can find out which content is served through insecure protocol by using the Inspect tool. The mixed content error will be displayed as a warning in the console with details for each mixed content item.

Mixed content displayed in developer tools

If it is just a single item that you can manually fix, then you can go ahead and fix it by editing the post, page, or theme file where it appears.

However, in most cases these items are added dynamically by WordPress or stored in your database. In that case, it will be hard to detect all of them and fix them manually.

That being said, let’s take a look at how to easily fix the mixed content error in WordPress.

Fixing Mixed Content Error in WordPress

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

Upon activation, you need to visit Settings » SSL Insecure Content page to configure the plugin settings.

SSL secure content plugin settings

This plugin provides different levels of fixes to the mixed content error. We will explain each one of them, what they do, and which one is best for you.

1. Simple

This is the fastest and recommended method for all beginner users. It automatically fixes the mixed content error in WordPress for scripts, stylesheets, and WordPress media library images.

2. Content

If the simple method doesn’t fix the mixed content error on your website, then you should try this method. It will use all the features of simple, in addition to checks for fixes inside WordPress content and text widgets.

3. Widgets

This includes all fixes applied in content level plus an additional fix to resources loaded in all WordPress widgets on your website.

4. Capture

This method captures everything on every page of your website from header to footer and replaces all URLs with HTTPs. It is slower and would affect performance of your website.

5. Capture all

When all above levels fail, then you can try this method. It attempts to fix everything which may result in some unexpected behavior on your website. It will also have the most negative impact on performance.

After selecting a content fix level, you need to scroll down to the HTTPS detection section. This is where you can choose how to detect the HTTPs content on your website.

HTTPS detect

The default option is to use a WordPress function, which would work for most website.

Below that you will find other options which are particularly useful if you’re using Cloudflare CDN, nginx web server, and more. Go ahead and select the method that you think applies to your website depending on your particular setup.

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

You can now visit your website to see if this resolved the insecure content issues on your website. Make sure to clear your WordPress cache before checking your website.

If the mixed content error in WordPress is not fixed, then revisit the plugin’s settings page and readjust the fix levels.

We hope this article helped you learn how to fix the mixed content error in WordPress. You may also want to see our 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 the Mixed Content Error in WordPress (Step by Step) appeared first on WPBeginner.

Swarmify SmartVideo Review: A Better Way To Embed Videos In WordPress

If you’ve been using WordPress for some time, you probably know that it’s a horrible idea to use the WordPress Media Library to host videos on your site. Not only are those files large and going to use a lot of bandwidth, but your visitors are probably going to have an equally horrible experience because ... Read moreSwarmify SmartVideo Review: A Better Way To Embed Videos In WordPress

The post Swarmify SmartVideo Review: A Better Way To Embed Videos In WordPress appeared first on Learn WordPress with WPLift.

How to Disable Specific WordPress Plugins for Mobile Users

Recently one of our readers asked if it is possible to disable specific WordPress plugins on the mobile version of their website? Like with anything in WordPress, there’s a plugin for that. In this article, we will show you how to easily disable specific WordPress plugins in mobile version of your site.

Disable specific WordPress plugins in mobile

Why Disable Specific WordPress Plugins for Mobile Users

WordPress does not load inactive plugins when someone visits your website. However, it does loads all the active plugins and then depending on a plugin it will load required scripts and stylesheets as well.

See our guide on how WordPress works for a behind the scene look at how it loads plugins.

All good WordPress plugins try to only load when needed. However, sometimes it is difficult for plugin authors to guess whether you will need the plugin or not. In such situations, they opt to load the required files just in case.

Some users who want to get a perfect score in the Google speed and performance test, often want to disable specific plugins for mobile.

That’s where this article can help.

Let’s take a look at how to easily disable individual WordPress plugins for mobile version of your website.

Setting up WordPress Plugin Organizer Plugin

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

Important: Plugin organizer is a very powerful plugin. Reordering or disabling plugins can cause conflicts and unexpected behavior which could make your site inaccessible. We recommend that you create a complete WordPress backup before disabling or reordering any plugins.

Upon activation, you need to visit Plugin Organizer » Settings page to configure plugin settings.

Apart from default options, right now you just need to turn on the following options.

  • Selective plugin loading
  • Selective mobile plugin loading

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

Creating a Must-Use Plugin for Plugin Organizer

Plugin Organizer needs a must-use plugin to work properly. It will automatically try to create it for you, but if it fails, then you will have to create it on your own.

Let’s start by checking if the plugin was able to create the MU plugin automatically.

You can do this by going to the Plugins » Installed Plugins page. You will see a new link labeled Must-Use and clicking on it will show you the installed MU plugins on your site.

Must use plugin installed

If you don’t see the plugin or Must-Use plugins link, then this means that the plugin organizer failed to create the file, and you will need to manually do it yourself.

First, you need to connect to your website using an FTP client or File Manager app in cPanel.

Next, you need to go to the /wp-content/mu-plugins/ folder. If you don’t have a mu-plugins folder in your /wp-content/ folder, then you need to create one.

After that you need to go to /wp-content/plugins/plugin-organizer/lib/ folder and download the file called ‘PluginOrganizerMU.class.php’ to your computer.

Copy MU Plugin

Next, you need to go to the /wp-content/mu-plugins/ folder and upload the file from your computer.

Upload MU plugin

The Plugin Organizer can now use this file to properly manage your plugins on mobile as well as desktop.

Disable Specific WordPress Plugins in Mobile Version

Plugin Organizer makes it very easy to disable any WordPress plugins on mobile. Simply head over to the Plugin Organizer » Global Plugins page.

You will see two columns on the screen. The first column is for ‘Available items’ which contains all your installed WordPress plugins. The second column is for ‘Disabled items’ with disabled standard and disabled mobile boxes.

Global Plugins

First you need to click on the Disabled Mobile box to expand it. After that drag and drop the plugins you want to disable from the available column to the disabled mobile box.

Disable plugins in mobile version

After adding the plugins don’t forget to click on the ‘Save’ button to store your changes.

That’s all. The plugin organizer will now disable these plugins on your mobile site.

Plugin Organizer also makes it easy to disable individual WordPress plugins for specific posts, pages, user role, and other parameters. For more detailed instructions, see our guide on how to use Plugin Organizer to speed up WordPress.

We hope this guide helped you learn how to easily disable specific WordPress plugins in mobile version. You may also want to see our list of must have WordPress plugins you should install on your website.

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 Disable Specific WordPress Plugins for Mobile Users appeared first on WPBeginner.

How to Create a Survey in WordPress (with Beautiful Reports)

Do you want to create a survey in WordPress? Surveys help you gather valuable information, so you can use to make data-driven decisions. In this article, we will show you how to easily create a survey in WordPress and generate beautiful reports.

Survey Plugin for WordPress

Choosing The Best Survey Tool for WordPress

There are many online services that allow you to create survey forms and embed them in WordPress. The downside of these forms is that the data is stored on third-party servers, and you have limited customization options.

Some of these forms are also limited to the number of responses you can collect. You have to pay extra to get more responses and usually these services have high monthly costs.

Wouldn’t it be nice if you could run surveys on your own website without relying on third-party services?

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

They recently announced a powerful new WordPress surveys and polls addon that you can use to easily create survey forms on your website.

With WPForms survey feature, you get the following:

  • Powerful drag and drop form builder to create surveys
  • Smart survey fields like Rating, Likert Scale, and more
  • Conditional logic to personalize survey fields based on user input
  • Interactive survey reports with bars, graphs, charts, and tables
  • Ability to export survey graphs as JPEG, PDF, or Print Formats
  • Export survey results as CSV to use elsewhere

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

Disclosure: WPForms is created by the same team behind WPBeginner. It is one of our premium WordPress plugins.

Creating a Survey in WordPress

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

WPForms surveys and polls addon is part of their Pro plan. WPBeginner users can use our WPForms coupon to ge 10% OFF on all WPForms licenses.

Once the plugin is activated, you need to head over to WPForms » Settings page to enter your license keys. You can find this information under your account on the WPForms website.

WPForms License

Next, you need to visit the WPForms » Addons page and scroll down to the Surveys and Polls addon. Go ahead and click on the Install addon button to install the survey addon. Once installed, you need to click on the ‘Activate’ button to start using the addon.

Install survey and polls addon

Now you are ready to create a survey form.

You need to visit WPForms » Add New page to create a new form. This will launch the WPForms’ drag and drop form builder interface.

Create survey form

First you need to provide a title for your survey form and then click on the Survey Form template.

This will load a sample customer feedback form template with several fields already added into the form.

Survey form template

You can just point and click to edit any field, rearrange them with drag and drop, or remove them from the form. You can also add new form fields from the left column.

WPForms supports all commonly used form fields including drop down, radio buttons, checkboxes, likert scale, text input, rating scale, and many more. This makes it super easy for you to build highly interactive survey forms.

WPForms also includes conditional logic which means you can personalize your survey questions based on user input in one of the previous fields.

Conditional fields

Once you have created the form, you need to click on the save button to store your form settings. You can now click on the close button to exit the form builder.

Adding The Survey Form in Your WordPress Website

WPForms makes it very simple to add your forms anywhere on your website. You can easily add your survey form in any WordPress post, page, custom post type, or your sidebar.

To add the survey form in a WordPress post, page, or post type, you need to visit the post edit screen and click on the ‘Add Form’ button.

Add form button

This will bring up a popup where you can select the survey form you created earlier and click on the insert form button to continue.

You will now see the form shortcode added into the post editor.

Once you are done editing the post, go ahead and publish it. You can visit your website to see your survey form live in action.

Survey form preview

WPForms also allows you to easily add your survey form into any sidebar or widget ready area. Simply head over to the Appearance » Widgets page in your WordPress admin area and drag the WPForms widget to any sidebar.

Survey form widget

In the widget settings, select the survey form you created earlier and don’t forget to click on the save button to store your changes.

You can now visit your website to see your survey form displayed in the sidebar.

Sidebar survey widget

Viewing Your Survey Form Results

WPForms shows survey results in beautiful charts and graphs. You can also print survey results and export them to use in your favorite spreadsheet software.

To view your survey results, you need to visit WPForms » All Forms page and click on the ‘Survey Results’ link below your survey form.

View survey results

On the results page, you will see your survey responses displayed in an interactive chart and tables. You can export responses to a single question, as well as the entire survey.

Survey results

On the top, you will see options to switch to different chart types and the export option. You can save individual survey results as JPEG, PDF, and Print formats to easily share them on presentation slides, blog posts, or social media.

Result tables

Convert Any Form into a Survey

WPForms also allows you to make any form into a survey form and display past results as a survey. You can even select specific form fields that you want to be treated as survey fields.

This is particularly useful if you want to gather data through other forms like a contact form, user registration, or newsletter sign up forms.

To convert an existing WPForms form into a survey, simply edit the form in WPForms and go to the Settings » Surveys and Polls section. You need to check the box next to ‘Enable Survey Reporting’ option and save your changes.

Enable survey reporting for any form in WPForms

To enable survey reporting for an individual form field, simply edit the form and then click on the field that you want to enable.

Under the ‘Field Options’ section on your left side, you need to click on the Advanced Options and check ‘Enable Survey Reporting’ option.

Enable survey reporting for any form field

We hope this article helped you learn how to easily create and add beautiful survey forms in WordPress. You may also want to see our beginner’s guide on how to track user engagement in WordPress with Google Analytics.

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 Survey in WordPress (with Beautiful Reports) appeared first on WPBeginner.

How to Use the Plugin Organizer to Speed Up Your WordPress Site

After WordPress hosting, plugins are the second biggest reason that can cause your WordPress site to be slow. Often times this can be mitigated by either disabling the plugin or stop it from loading in areas where you don’t need them. In this article, we will show you how to use the Plugin Organizer to speed up your WordPress site.

Using Plugin Optimizer to speed up WordPress

How WordPress Plugins Affect Your Website Speed?

One of the most frequently asked questions that we get is how many WordPress plugins are too many? The two things that concerns most users are WordPress security and how plugins may affect speed and performance?

All good WordPress plugins are coded in a way that they are only loaded on your website when needed. You can see our infographic on how WordPress actually loads plugins (behind the scenes).

WordPress doesn’t load inactive plugins which means they don’t affect your website’s performance. However, it does load all active plugins which then run their code when needed.

Now sometimes plugin authors cannot anticipate when and where you will use their plugin features on your website. In that case, they may load their code whether or not you need it. If the plugins are loading JavaScript and CSS files, then this may increase your website’s page load time.

How WordPress Plugin Organizer Can Speed Up Your Site

Depending on the plugins that you’re using, there may be some that you only need on specific pages, posts, or post types. Some plugins you may only need in the WordPress admin area, so they shouldn’t load on the front-end of the website.

WordPress Plugin Organizer allows you to do the following things:

  • Selectively enable or disable plugins based on URL
  • Enable or disable plugins for user roles
  • Enable or disable plugins based on post types
  • Rearrange the order in which plugins are loaded
  • Disable plugins and only load them when needed

Basically, it gives you the ability to fine-tune your website performance.

That being said, let’s take a look at how to use the Plugin Organizer to speed up WordPress.

Using WordPress Plugin Organizer to Manage Active WordPress Plugins

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

Important: Plugin organizer is a very powerful plugin. Reordering or disabling plugins can cause conflicts and unexpected behavior which could make your site inaccessible. We recommend that you create a complete WordPress backup before disabling or reordering any plugins.

Once you are ready, you need to head over to the Plugin Organizer » Settings page to configure your settings.

Plugin organizer settings

There are several options on this page, and we will look at each option, what it does, and which ones you should turn on.

Fuzzy URL Matching

This option allows you to enable/disable plugins on child URL. This means that settings will affect http://example.com/sample-page/ and all subsequent URLs under it. For example, http://example.com/sample-page/child-page1/ and http://example.com/sample-page/child-page2/.

Ignore URL Protocol

This option is turned off by default. It allows the plugin organizer to ignore http and https part of plugin URLs. This is particularly helpful if you have SSL enabled on your WordPress site.

Ignore URL Arguments

This option allows you to ignore URL arguments. For example, http://example.com/page/?foo=1&bar=2 is a URL with arguments. Turning on this option is only helpful on URLs with arguments. You should leave it OFF in most cases.

Only allow network admins to change plugin load order?

If you are running a WordPress multisite network, then turning on this option will only allow Network Administrator to rearrange plugin order. We highly recommend that you turn this on if you have a WordPress multisite network.

Custom Post Type Support

This option allows you to select the post types where you want to enable/disable plugins. This option is particularly useful if you have plugins that you only need for specific post types.

Auto Trailing Slash

This option adds or removes the trailing slash at the end of plugin filter URLs based on your WordPress permalink settings.

Selective Plugin Loading

This option allows you to selectively load plugins even if they are disabled in plugin settings. You need to turn on this feature if you want to enable or disable plugins on individual content types.

To properly use this option, you need to add a must use plugin or mu-plugin in WordPress. MU plugins can be added to any WordPress site, and they are activated by default. The plugin will try to create an MU plugin itself, but if it fails then you will need to create it. We will show you how to do that later in this article.

Selective Mobile Plugin Loading

This option allows you to selectively enable or disable plugins on mobile browsers.

Selective Admin Plugin Loading

You can turn on this option if you want certain plugins to only load inside the WordPress admin area.

Disable Plugins By Role

This option allows you to disable plugin by user roles. You can turn on this option and then select user roles that you want to use in the next box.

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

Creating an MU Plugin for Plugin Organizer

Plugin Organizer needs an MU plugin to work properly. The plugin will try to automatically add it to your website, but if it fails then you will have to create it yourself.

To find out whether the plugin has successfully created the MU plugin. You need to visit Plugins » Installed Plugins page. You will see a new link labeled Must-Use, clicking on it will show you the installed MU plugins on your site.

Must Use plugins installed in WordPress

If you don’t see the plugin or Must-Use plugins link, then this means that the plugin organizer failed to create the file, and you will need to manually do it yourself.

First, you need to connect to your website using an FTP client or File Manager app in cPanel.

Next, Go to the /wp-content/mu-plugins/ folder. If you don’t have a mu-plugins folder in your /wp-content/ folder, then you need to create one.

After that you need to go to /wp-content/plugins/plugin-organizer/lib/ folder and download the file called ‘PluginOrganizerMU.class.php’ to your computer.

Copy MU plugin file

Next, you need to go to the /wp-content/mu-plugins/ folder and upload the file from your computer.

Plugin Organizer mu-plugin file

The Plugin Organizer can now you use this file to properly manage your plugins efficiently. You can go ahead and continue with plugin settings.

Set up Global Plugin Options

Plugin Organizer allows you to activate plugins but keep them disabled. To set up which plugins remain active and which plugins are disabled, you need to go to the Plugin Organizer » Global Plugins page.

Set plugins to disable globally

You will see your installed plugin on the left. Active plugins will be highlighted and displayed on top. If you want to disable a plugin, then you can simply drag and drop it to the Disable column.

This will disable the plugins without deactivating them.

You can re-enable the plugin you disabled for individual post types, single post or page items, individual URLs, from different pages in the plugin settings. We will walk you through each of them later in this article.

Enable or Disable Plugins on Search Results Page

To disable or enable certain plugins on search results, you will need to visit the Plugin Organizer » Search Results page.

Disable plugins on search results page

On this screen, you need to simply select a plugin from the left column and drop it to the disable column. You will notice that the disable column has different boxes. You will need to click on the box where you want to disable the plugin. For example, adding a plugin to ‘Disabled Standard’ box will disable the plugin for all users on all pages.

If you previously set a plugin to be disabled globally, and you want it to be loaded on search results page, then you can simply drag and drop it from disabled plugins column back to available plugins.

Enable plugins on search results page

Selectively Enable / Disable Plugins for Custom Post Types

To control which plugins work on certain post types, you need to visit Plugin Organizer » Post Type Plugins page.

Enable or disable plugins for post types

First, you will select the post type where you want to apply the changes. After that, you can drag and drop plugins from available items column to the disable column.

You can also enable a plugin that you have disabled in Global Plugins page by dragging it from the Disabled column to the available items.

Group Plugins and Change Plugin Load Order

By default, WordPress loads your current active plugin files alphabetically. This alphabetical order may sometimes cause conflicts if you have plugins depending on each other’s code.

For example, if you have a plugin file apple.php which relies on functions in another plugin called zebra.php, then you may need the zebra.php file to load first so that apple.php works properly.

Plugin Organizer allows you to manually change the plugin order and group plugins. However, be very careful as this could make your website inaccessible.

To rearrange the plugin load order, you need to visit Plugin Organizer » Group and Order Plugins page.

The plugin organizer will display your plugins in default alphabetical order, and you can rearrange the order by simple drag and drop.

You can also group plugins together by selecting ‘Create new group’ from the drop down menu at the top. Next, you need to enter a name for the group and select the plugins you want to add in it.

Creating a plugin group

Once you are done with the group, click on the Submit button to continue. Plugin organizer will now create a plugin group for you.

Now if you go to the Plugins page, then you will see a new link named after your group name. When you click on it, you will see all the plugins inside that group.

Plugin group list on the plugins page

Creating Plugin Filters with Plugin Organizer

Plugin Organizer allows you to enable or disable plugin based on URL. To do that you need to create Plugin Filters. These filters will allow you to enable or disable plugins that match specific URLs.

First you need to go to the Plugin Organizer » Plugin Filters page and click on ‘Add Plugin Filter’ link.

Add plugin filter

This will bring you tothe add new plugin filter page. You will need to provide a name for your plugin filter and then add permalinks (URLs) that you want to be affected by this filter.

Creating a plugin filter

You can add multiple URLs by clicking the Add Permalink button.

Under the settings section, you can choose whether this filter will also affect child URLs of permalinks you have added. You can leave the priority field blank.

After that, scroll down to the ‘Plugins’ section. Here you can drag and drop plugins from the available items to Disabled boxes.

Disable plugins based on URL filters

Similarly, you can also drag and drop a plugin from the disabled column to available items to make a plugin load when this filter is matched.

Additionally, you can save this filter inside a filter group. Filter groups are like categories. Their purpose is to help you sort similar plugin filters together.

Organize your filters in groups

Once you are done, click on the publish button to make this plugin filter active. It will start working as soon as you click on the publish button.

Enable or Disable a Plugin on a Single Post or Page

Plugin Organizer also allows you to load or disable plugins on a single post, page, or custom post type item. First you need to make sure that you have enabled the post type support on Plugin Organizer » Settings page.

Post types enabled

Next, go ahead and edit the post, page, or custom post type you want to change. On the post edit screen, scroll down to the ‘Plugin Organizer’ section.

Plugin organizer section on post edit screen

You will see the plugin organizer settings with your plugins. You can drag and drop plugins to disable them or drag disabled plugins to available items to make them active.

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

Troubleshooting Plugin Organizer Issues

Plugin Organizer plugin is used to change the default behavior of WordPress plugins on your website. Your settings may cause unexpected results including fatal errors, syntax errors, or white screen of death.

A quick way to resolve those issues is by deactivating all your WordPress plugins via FTP. This will deactivate plugin organizer as well.

To uninstall Plugin Organizer, simply delete the plugin from the plugins page. This will not only delete the plugin itself, but it will also delete all plugin settings. You can then reinstall the plugin if you want.

For most errors, see our comprehensive list of most common WordPress errors and how to fix them. If the error you are seeing is not listed, then try our step by step WordPress troubleshooting guide to find the cause of the error and possible solutions.

We hope this article helped you efficiently use WordPress plugin organizer to speed up your WordPress site. If you want to just install best of the best plugins, then see our list of must have WordPress plugins for all websites.

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 Use the Plugin Organizer to Speed Up Your WordPress Site appeared first on WPBeginner.

How to Add a Cookies Popup in WordPress

Do you want to add a cookies consent popup in WordPress? The European Union’s cookie law requires websites to get user consent to set any cookies on their computers. As a WordPress website owner, your website may be using cookies as well. In this article, we will show you how to add a cookies popup in WordPress.

How to add cookies consent popup in WordPress

How WordPress Uses Cookies?

By default WordPress uses cookies for authentication purposes to store session information for logged in users. It also sets a cookie when someone leaves a comment on your site.

Apart from these, WordPress plugins can set their own cookies to store different information. For example, WP Favorite Posts plugin shows a user’s favorite posts by storing them in a cookie.

While cookies are extremely useful, they can also be used to collect information about a user and share it with third party advertising platforms.

This is why in Europe and few other countries, website owners are required to let users know about their usage of cookies. If your website is based in one of those countries or mainly targets audiences in those regions, then you need to show a cookie consent disclaimer on your website.

Cookies notification popup displayed on the BBC website

That being said, let’s take a look at how to easily display a cookie consent popup in WordPress.

Showing a Cookie Consent Notification in WordPress

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

Upon activation, you need to visit Settings » Cookie Consent page to configure plugin settings.

Cookie consent notification settings

On this page, you can control when and where you want to show the cookie consent notification. You can also select how you would like it to be closed.

In other settings, you can show or hide it for people visiting from specific geographic locations and set an expiration time for the cookie.

The default settings would work for most websites. Don’t forget to click on the ‘Save Changes’ button to store your settings.

Next, you need to switch to the ‘Content’ tab. This is where you can edit the content that will be displayed to your users in the notification.

Edit cookie consent notification content

Here you also need to select your privacy policy page. If you haven’t already created a privacy policy page, then you can follow our guide to create a privacy policy page in WordPress and then select it here.

Once you are done, click on the save changes button to store your settings.

Changing the Appearance of Your Cookie Consent Notification in WordPress

Your cookie consent popup is almost ready. You just need to setup how you would like it to be displayed.

First you need to visit Settings » Cookie Consent page and then click on the Styles tab.

Cookie consent popup notification style

On this tab, you can choose the position, colors, borders, and style for your cookie consent popup notification. You can also set a container class and then add custom CSS for your popup.

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

You can now visit your website to see your cookie consent popup in action.

Cookie consent popup on a WordPress website

We hope this article helped you add a cookie consent popup to your WordPress site. 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 a Cookies Popup in WordPress appeared first on WPBeginner.