Galleries are one of the most important parts of a website as it is the most professional way to show your media and allow your users to have a good visual experience when visiting your site, it is known that there are too many ways to create galleries such as using a plugin, but what about taking serving them directly from the cloud? Let me tell you that it is totally possible with WP Media Folder and you'll see how to do this on this post ;)
The first step on this tutorial is to connect Google Drive with your site and you will see how easy it is, first of all, you will need the Cloud Addon from WP Media Folder that is what is going to allow you to connect your site with Google Drive.
Now that we have installed WP Media Folder, and the Cloud Addon we can start with the setup, for this, there are two options, Manual and Automatic so let's explain them.
In order to start the setup go to Settings > WP Media Folder > Cloud > Google Drive. Here you'll be able to select the Drive Type:
Then select the link type for your images:
And then, proceed with the connection:
First, in order to use this feature, you have to link your Joomunited account at Menu Settings > General, please click on the WordPress settings link if you have not connected yet.
After doing this, go back to Settings > WP Media Folder > Cloud > Google Drive, select the Automatic Mode, and then on Connect Google Drive.
Follow the steps to connect your Google account, and that's all, you have your site connected :)
Really easy and quick, isn't it?
Manual mode: first of all, you need to create Google Dev APP to connect it with your site, for this, go here and create a Create Project.
Then, select the project name and the location.
If it's the first time using the Google Drive API, go to APIs & Services > Library, look for the Google Drive API and click on Enable.
Now that you have enabled it, let's create the keys to connect your WordPress site go to the left menu again and click on API & Services > Credentials.
Click on + Create Credentials > OAuth Client ID, if it asks for it, please add a name to your OAuth consent screen.
On application, you can select Web Application, and add a name of your choice, for the other parameters use the following:
Please keep in mind that if this warning appears: "To create an OAuth client ID, you must first set a product name on the consent screen" you should click on Configure consent screen button or go to APIs & Services >> OAuth consent screen, then add your domain name at Authorized domains.
First, you'll need to select a User Type.
You can select between:
As a final step goes to Settings > WP Media Folder > Cloud > Google Drive, and select the manual mode, in this screen, you will see the option to add the Client Secret, and the Client ID so basically, past them there and click on Connect Google Drive.
Allow WP Media Folder to access the APP and that's all! You'll have the Google account connected!
Now that we have connected Google Drive to our Media Library, the connection will work really simple, it will generate a root folder in your Google Drive Account and all the media/folders added there will appear on your Media Library under the Google Drive folders, and all the media/folders added to your Media Library added under the Google Drive folders will appear on your Google Drive account.
So let's start with the gallery creation, for this, go to your Media Library > Google Drive and you can add a new folder to keep things organized, for example, we add a new one called Gallery to use on this tutorial.
Upload the images there and you'll see them reflected on Google Drive.
And let's proceed with the funniest part, create the galleries! For this, go to Post/Page > Add New (Or edit an already created one).
We will use Gutenberg Editor for this case but you can use any other Page Builder as all of them are compatible with WP Media Folder ;)
Now that we are here, click on + > WP Media Folder Gallery.
This will show you all the available folders including the ones from Google Drive, we will select the one we created called Gallery, and then click on Create Gallery.
You will see a preview of the theme, you can change it on the right panel.
As you can see, it is as easy as select the images, the theme and publish it, there are other options so you can adjust the galleries as how you want like the order, action on click, and the Lightbox size.
You can confirm in your server that the images won't exist because these are only hosted on Google Drive ;)
The other option when you want to create galleries is using the Gallery Addon, this awesome addon offers you more gallery themes and options to edit them with an interface to customize them before being published.
You can find it by going to Media > Media Folder Galleries, on this screen, click on +Add New Gallery and set up the gallery options, you can select a name for the gallery and also, select the gallery theme that you're going to use.
Choose the name, the gallery level, the gallery theme, and then, click on Create.
Now, here you can see all the options available to add images, for this case where we are going to use the Google Drive addon, select the WordPress icon.
This will open the Media Library, we are going to select the Google Drive folder that we created before, in this case, called Gallery, and select all the images that you want to add to the gallery, finally, click on Import.
You'll see the images on this screen so you can reorder, set an image as the cover, or change the settings from a specific image, things like the alt name, and title :)
So now, all we have to do is choose the gallery, adjust it to fit your content, confirm your gallery with the preview and save it!
On the Display settings & Shortcode, you can set:
You can also copy the shortcode from this screen if you want to use it instead of the predefined block for each Page Builder.
Now the last step is to preview the gallery to confirm that everything is okay, this can be done in the third tab called Preview.
The extra available themes with the addon are the following ones:
Now that you have selected the theme, and finished the setup, you can proceed with publishing the gallery, for this go to your Post/Page and edit it, for the Gutenberg Editor, and click on + > WPMF Gallery Addon.
Click on Select or Create Gallery, this will load the gallery addon dashboard so you can select the gallery, or also create a new one directly from there, check the preview and then, click on Insert.
So now insert your gallery and finally, publish it! As you can see the Gallery Addon offers you more possibilities than the normal galleries do, is like, go to the next level :)
As you were able to see in the post, is a really easy-to-use and useful post to go to the next level with your website! So what are you waiting for? Go here and obtain your membership now!
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.