How to Create an Online Marketplace using WordPress

Do you want to create an online markeplace using WordPress? Online marketplace websites allow your users to buy and sell items by setting up their own mini stores within your eCommerce website. In this article, we will show you how to easily create an online marketplace using WordPress.

Building an online marketplace using WordPress

What Do You Need to Start an Online Marketplace using WordPress?

First you need to make sure that you are using the right website platform, and since you’re reading this article, you’re in the right place.

There are two types of WordPress available: WordPress.com vs WordPress.org. One is a limited blog hosting service while the other is known as the self-hosted WordPress which you’ve likely heard tons about. See the full comparison between WordPress.com vs WordPress.org.

We recommend using WordPress.org because it gives you the freedom and access to all WordPress features out of the box.

To start an online marketplace using self-hosted WordPress you will need the following:

  • A domain name (For example, wpbeginner.com)
  • Web hosting account (This is where your website’s files are stored)
  • SSL Certificate (To securely accept online payments)
  • WooCommerce (best WordPress eCommerce addon)
  • Online marketplace addon

The entire setup can take up to 40 minutes, and we will walk you through every step one by one.

Ready? Let’s get started.

Step 1. Setting up Your Ecommerce Platform

First step is to buy a domain name and a web hosting account. You don’t just need a web hosting, but you will need a service that specializes in WooCommerce hosting because this is the software that we will be using as our eCommerce platform.

Typically a domain name costs $14.99/year, web hosting 7.99/month, and SSL certificate 69.99/year.

Now this seems like a lot of money if you are just starting out.

Fortunately, Bluehost an officially recommended WordPress and WooCommerce hosting provider has agreed to offer our users free domain + SSL and discount on their cloud WordPress hosting.

Basically, you can get started for $6.95 / month.

→ Click Here to Claim This Exclusive Bluehost Offer ←

Once you have purchased hosting, then follow our step by step tutorial on how to start an online store for complete setup instructions.

You would now have a WordPress website with WooCommerce installed on it. However, by default WooCommerce assumes that your website is a single vendor website, so it is not possible for other users to add their own products to your website.

Let’s change this.

Step 2. Turn Your WooCommerce Site into an Online Marketplace

First you need to install and activate the WC Vendors plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, head over to WooCommerce » WC Vendors page to configure marketplace settings.

WC Vendors settings

On this screen, you need to set a commission rate that you will pay to each vendor. This rate could also be overridden for individual products or vendors.

The default settings on the page will work for most sites, but you can review and change them as needed.

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

Next, you need to switch to the products page. On this screen, you can choose which items to hide from vendors when they are adding a product.

Configure products settings for vendors

WC Vendors allows you to setup vendor capabilities and permissions. Head over to the Capabilities tab on the WC Vendors settings page.

WC Vendors capabilities

Next item on the WC Vendors settings page is to setup pages.

The plugin will automatically create pages to use for vendor dashboard, shop settings, and orders page. You can use a different page if you would like by using the shortcodes shown below each page.

Setting up vendor pages

One page that is not automatically created by the plugin is the terms page. These are the terms that a vendor has to agree to when submitting their application.

To create a terms page, you can simply create a new page in WordPress and add the terms and conditions in plain text describing what vendors can sell, how they will get paid, how to settle disputes, etc.

Once you have created a terms page, you can return back to this section and select your newly created page here.

The final item on WC Vendors settings page is the most important one, the Payments. By default, WC Vendors uses PayPal Adaptive Payments to pay vendors.

You will see a link to setup PayPal adaptive payments. After you have set it up, you can choose when you want to pay the vendors.

Scheduling payments

Now that WC Vendors is all set up, let’s setup WooCommerce for a multi-vendor environment.

Step 3. Enable Account Management in WooCommerce

First you need to visit WooCommerce » Settings page and click on the ‘Accounts’ tab. From here you need to check the boxes next to customer registration option.

Enable customer registration in WooCommerce

Don’t forget to save your changes.

Step 4. Setting Up Navigation Menus

Now that your multi-vendor marketplace setup is finished. It is time to make it easy for your users to find their way around your website.

To do that, you need to visit Appearance » Menus page. You will need to add your user account and checkout pages to the navigation menu.

Add to menu

Don’t forget to click on the ‘Save Menu’ button to store your changes. For more detailed instructions, see our guide on how to add navigation menus in WordPress.

If you don’t have a My Account page, then simply create a new page in WordPress and add the following shortcode in the post editor.

[woocommerce_my_account]

Step 5. Testing Your Marketplace Website

Your online marketplace website is now ready for testing. You can visit your website in a new browser window and create a new account by clicking on the My Account link at the top.

Testing your website

From here, both customers and vendors can login to their accounts as well as create a new account.

Register as vendor

Once users create a new account, you will recieve an email notification. If you are unable to recieve email notifications, then take a look at our guide on how to fix WordPress not sending email issue.

You can also view new vendor applications by visiting Users » All Users page. You will see all new vendor requests as ‘pending vendor’, and you can approve or deny applications by clicking the link under their username.

Approve vending vendors

Once approved, these vendors can log in to their accounts and add their products by visiting their vendor dashboard. They can also view their orders and sales reports.

Vendor dashboard

The first thing your vendors need to do is to setup their shop settings by clicking on ‘Store Settings’ link.

Shop settings

They will need to provide their PayPal email address to recieve payments. After that they can enter their shop name and description.

Once a vendor adds a new product, you will get a notification email and see an icon next to the products menu. You can then edit a product, approve it, or delete it.

Pending products

Your shop page will clearly show the products sold by vendor’s shop name.

Sold by vendor

We hope this article helped you learn how to create an online marketplace using WordPress. You may also want to see our pick of the best WooCommerce themes, best WooCommerce plugins, and the ultimate 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 Create an Online Marketplace using WordPress appeared first on WPBeginner.

Beginner’s Guide: How to Center Align a Video in WordPress

Do you want to center-align a video in WordPress?

By default, if your video’s width is less than your article area, then WordPress automatically aligns it to the left, leaving extra white space on the right side.

In this article, we will show you how to easily center align a video in WordPress.

How to center align a video in WordPress

Why Center Align Videos in WordPress?

When you embed a video in WordPress, it automatically aligns them to the left by default. This is because videos are external content embedded in the content, so WordPress is unable to guess how you would like to display it.

As a best practice, it automatically aligns it to the left, leaving it up to you to adjust the alignment if needed.

By aligning the video to the center, users will have a better experience viewing your content. This way, you won’t have noticeable blank space on the one side of the page, which could give an unprofessional look.

Besides, if you upload videos directly to WordPress, the same thing will happen to them if their width is less than your content area. WordPress will align them to the left by default.

That being said, let’s see how you can easily center-align a video in a WordPress website. We’ll cover both the block editor and classic editor, so you can click the links below to jump ahead to any section.

How to Center Align Video in WordPress Content Editor

If you want your video to fill the width of your content area, then the best way to do this is by adding a YouTube or Vimeo video URL directly in the WordPress content editor.

First, you’ll need to edit a post or a page or add a new one. Once you are in the content editor, simply paste the link to the video. WordPress will embed the video automatically.

Paste video embed code in block editor

Next, select the video block and then click the Change Alignment option. From the dropdown menu, you can choose the position of the video.

WordPress lets you choose from the following alignments:

  • wide width
  • full width
  • align left
  • align center
  • align right.

Go ahead and select the ‘Align center’ option.

Align the video to the center

After that, you can preview and publish your page or post.

The video will now be center-aligned.

Center aligned video preview

However, sometimes for one reason or another, you may need to use the embed code. In that case, you will need to add some simple HTML around your video’s embed code.

First, you need to click the 3 dotted icons in the video block. After that, you can select the ‘Edit as HTML’ option from the dropdown menu.

Edit as HTML

Next, you can enter the following piece of HTML code around the embed code of the video:

<div style="text-align:center;">

/// your video embed code goes here

</div>

Here’s what your embed code would look like with the custom HTML.

Preview of custom HTML code

You can now save your changes and preview the post or page. Your video will be neatly aligned in the center of your content area.

Another approach is to manually increase your video’s width to fit the content area. To achieve this, you need to add or change the ‘width’ parameter in your embed code.

<iframe width="760" height="315" src="https://www.youtube.com/embed/4YpyiJ05YOg" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

How to Center Align Video in the Classic Editor

If you’re using the Classic editor, then you can center align videos by editing a post or creating a new one.

Once you’re in the editor, switch to the Text view. Now enter the following HTML code:

<div style="text-align:center;">

/// your video embed code goes here

</div>

Just make sure to replace ‘your video embed code goes here’ with your video’s embed code.

Once that’s done, it will look something like this:

Center align videos in classic editor

You can now preview and publish your page.

Simply visit your website to see the center-aligned video.

Center aligned video classic editor preview

We hope this article helped you learn how to center align a video in WordPress. You may also want to see our guide on how to start a WordPress blog and must-have WordPress plugins.

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

The post Beginner’s Guide: How to Center Align a Video in WordPress first appeared on WPBeginner.

Weekly WordPress News: The Challenges Of Running A WordPress Business In 2018

This week, there’s a big post from Alexander Mat, the co-founder of MotoPress, about the challenges of running a WordPress plugin and theme business in 2018. We also got a sneak peek at Elementor 2.0 – it looks like there’s going to be a ton of new features that move Elementor into a full theme ... Read moreWeekly WordPress News: The Challenges Of Running A WordPress Business In 2018

The post Weekly WordPress News: The Challenges Of Running A WordPress Business In 2018 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 Accept Stripe Payments On WordPress: Detailed Guide

Need to accept Stripe payments on your WordPress site? Stripe is great because it’s easy to use, charges transparent fees, and is not named PayPal (ok – that last one is kind of a cheap shot – but PayPal doesn’t have the best reputation). We’ve previously written a detailed guide on how to use Stripe ... Read moreHow To Accept Stripe Payments On WordPress: Detailed Guide

The post How To Accept Stripe Payments On WordPress: Detailed Guide appeared first on Learn WordPress with WPLift.

How to Use Shortcodes in your WordPress Sidebar Widgets

Do you want to learn how to use shortcodes in your WordPress sidebar widgets? Shortcodes allow you to do add additional features in your WordPress post content and other areas of your website. In this article, we will show you how to use shortcodes in your WordPress sidebar widgets.

How to use shortcodes in WordPress sidebar widgets

What Are Shortcodes?

Shortcodes allow you to add dynamic items like contact form, tables, and others inside your WordPress content area.

You can also use shortcodes in your widgets to add these dynamic items in your sidebars and other widget-ready area.

Let’s take a look at how to easily add and use shortcodes in your WordPress sidebar widgets.

Method 1: Adding Shortcode in WordPress Sidebar Using Text Widget

First thing you need to do is drag & drop a Text widget to your WordPress sidebar on the Appearance » Widgets screen in your dashboard. After adding the widget, you can simply add your shortcode inside the text edit area of the widget.

Adding shortcode in Text widget

Don’t forget to click on the ‘Save’ button to store your widget settings.

You can now visit your website and see the shortcode in action.

Shortcode displayed in sidebar widget

Method 2: Adding Shortcode in WordPress Using Custom HTML Widget

Sometimes you may want to add custom HTML code around your shortcode which may not work so well in the plain text widget. In that case, you will need to add your shortcode using the ‘Custom HTML’ widget.

By default, shortcodes are not allowed to be executed in a custom HTML widget. To change this, you will need to add the following code to your theme’s functions.php file or a site-specific plugin.

add_filter( 'widget_text', 'do_shortcode' );

After that, you can simply add a ‘Custom HTML’ widget to your sidebar and add your shortcode inside it.

Adding shortcode inside Custom HTML widget in WordPress

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

You can now visit your website to see your shortcode in action.

Shortcode added by Custom HTML widget

We hope this article helped you learn how to easily add shortcode to your WordPress sidebar widgets. You may also want to see these essential tips for using shortcodes in WordPress.

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

The post How to Use Shortcodes in your WordPress Sidebar Widgets appeared first on WPBeginner.

The Best Free WordPress Themes February 2018

As February comes to an end, we bring a wonderful list of WordPress themes for you and your friends. Let’s walk a way to find what’s there in February’s theme basket. Surely The Surely theme is an ideal choice for those looking to run a blog centered around premium content. As such, all the elements of ... Read moreThe Best Free WordPress Themes February 2018

The post The Best Free WordPress Themes February 2018 appeared first on Learn WordPress with WPLift.

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.