wordpress添加页面_如何在WordPress帖子和页面中添加多个画廊

wordpress添加页面

Want to add multiple image galleries in your WordPress posts and pages? While WordPress handles images beautifully, the default image galleries lack certain features. In this article, we will show you how to add multiple galleries in your WordPress posts, pages and sidebar.

是否想在WordPress帖子和页面中添加多个图库? 虽然WordPress处理图像精美,但默认图像库缺少某些功能。 在本文中,我们将向您展示如何在WordPress帖子,页面和侧边栏中添加多个画廊。

Adding multiple galleries in WordPress posts and pages
为什么以及谁需要在WordPress中添加多个画廊? (Why and Who Needs to Add Multiple Galleries in WordPress?)

WordPress is used by thousands of photographers, artists, and designers who use it to share their work with the world. It is also used by thousands of websites where images and photo galleries make most of the content.

WordPress被成千上万的摄影师 ,艺术家和设计师使用,他们与世界分享他们的作品。 成千上万的网站也使用它,图像和照片画廊构成了大多数内容。

These websites need to add galleries in many different ways. Like adding multiple galleries in a single post, adding galleries into sidebars, creating slideshows, and so on.

这些网站需要以许多不同的方式添加画廊。 就像在单个帖子中添加多个画廊,将画廊添加到侧边栏,创建幻灯片等等。

WordPress comes with a built-in gallery feature. You can use it to even add multiple image galleries. However, these image galleries lack functionality like opening images in a lightbox, browsing images without leaving the page, adding tags, creating albums, etc.

WordPress带有内置的库功能。 您甚至可以使用它来添加多个图像库。 但是,这些图像库缺少功能,例如在灯箱中打开图像,在不离开页面的情况下浏览图像,添加标签,创建相册等。

Most importantly, your galleries are not stored separately. If you want to reuse a gallery in some other post, then you will need to recreate it all over again.

最重要的是,您的画廊不会单独存储。 如果要在其他帖子中重复使用画廊,则需要重新创建。

Having said that, let’s take a look at the best way to add multiple galleries in WordPress posts and pages.

话虽如此,让我们看看在WordPress帖子和页面中添加多个图库的最佳方法。

在WordPress中添加多个图像库 (Adding Multiple Image Galleries in WordPress)

We will be using Envira Gallery for this tutorial. It is a premium WordPress gallery plugin that allows you to create beautiful image galleries in your WordPress site.

我们将在本教程中使用Envira Gallery。 这是一个高级WordPress画廊插件,可让您在WordPress网站中创建漂亮的图像画廊。

With Envira Gallery, your users can view your images in a lightbox popup. They can browse images without leaving the page, and you can reuse your galleries in other posts and pages. It is incredibly fast and comes with ready to use templates for your galleries.

使用Envira Gallery,您的用户可以在灯箱弹出窗口中查看您的图像。 他们可以浏览图像而无需离开页面,并且您可以在其他帖子和页面中重复使用画廊。 它的速度非常快,并且为您的画廊提供了现成的模板。

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

您需要做的第一件事是安装并激活Envira Gallery插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, you need to visit Envira Gallery » Settings page. There you need to enter your license key. You can find your license key in your account dashboard on Envira Gallery website.

激活后,您需要访问Envira Gallery»设置页面。 在此您需要输入许可证密钥。 您可以在Envira Gallery网站上的帐户仪表板中找到许可证密钥。

Adding Envira Gallery license key

After verifying your license key, you need to click on Envira Gallery which will take you to the galleries list. It will be empty since you haven’t created a gallery yet, so go ahead and click on the Add New button to add your first gallery.

验证许可证密钥后,您需要单击Envira Gallery ,它将带您进入画廊列表。 由于您尚未创建图库,因此它将为空,因此继续并单击“添加新”按钮以添加您的第一个图库。

Add new gallery

You will be taken to the add new Envira Gallery page. First you need to provide a title for your gallery, and after that you need to click on select files button to upload your gallery images.

您将被带到添加新的Envira Gallery页面。 首先,您需要为图库提供一个标题,然后,单击“选择文件”按钮以上传图库图像。

Upload images to your gallery

After uploading your images, you can click on the Publish button to save your gallery. This will make it available to be used in your WordPress posts or pages.

上载图像后,您可以单击“发布”按钮以保存图库。 这将使其可用于您的WordPress帖子或页面。

For more detailed instructions, take a look at our guide on how to easily create responsive image galleries in WordPress with Envira Gallery.

有关更多详细说明,请参阅我们的指南,该指南介绍了如何使用Envira Gallery在WordPress中轻松创建响应式图像画廊

Repeat the process to create another image gallery. You can create as many image galleries with Envira Gallery as you want.

重复该过程以创建另一个图像库。 您可以根据需要使用Envira Gallery创建尽可能多的图像库。

将画廊添加到WordPress帖子或页面中 (Adding Galleries into WordPress Posts or Pages)

Adding galleries into your WordPress posts and pages is very easy with Envira Gallery. Create a new WordPress post or edit an existing one.

使用Envira Gallery非常容易在您的WordPress帖子和页面中添加画廊。 创建一个新的WordPress帖子或编辑一个现有的WordPress帖子。

On the post edit screen, you will notice a new button labeled “Add Gallery” above the editor.

在帖子编辑屏幕上,您会注意到编辑器上方的标签为“添加图库”的新按钮。

Envira Gallery button in post editor

Clicking on the Envira Gallery button will bring up a popup. This popup will have the galleries you created earlier. Simply click on a gallery that you want to add and then click on the insert gallery button.

单击Envira Gallery按钮将弹出一个弹出窗口。 此弹出窗口将包含您之前创建的画廊。 只需单击要添加的画廊,然后单击插入画廊按钮。

Choose gallery you want to insert

You will now notice a shortcode appear in the post editor screen. It will look something like this:

现在,您会发现一个简短代码出现在帖子编辑器屏幕中。 它看起来像这样:

[envira-gallery id="13017"]

[envira-gallery id="13017"]

Now you can click on the Envira Gallery button again to select another gallery. You can add as many galleries as you want.

现在,您可以再次单击Envira Gallery按钮以选择另一个画廊。 您可以根据需要添加任意数量的画廊。

Once you are done, you can simply publish your post or page. Finally, visit your website, and you will see multiple galleries beautifully displayed on your website.

完成后,您只需发布您的帖子或页面即可。 最后,访问您的网站,您会看到多个画廊精美地显示在您的网站上。

A WordPress page with two image galleries
在WordPress侧边栏中添加多个画廊 (Adding Multiple Galleries in WordPress Sidebars)

Envira Gallery makes it super easy to add your galleries into sidebars and other widget ready areas. You need to go to Appearance » Widgets page. There you will notice the Envira Gallery widget under other available widgets.

Envira Gallery使将画廊添加到侧边栏和其他可用于窗口小部件的区域变得非常容易。 您需要转到外观»小部件页面。 在那里,您会在其他可用的小部件下看到Envira Gallery小部件。

Add Envira Gallery widget to the sidebar where you want to display your gallery. From the widget settings select the gallery you want to add.

将Envira Gallery小部件添加到要显示图库的侧边栏中。 从窗口小部件设置中,选择要添加的画廊。

Adding Envira Gallery widget to WordPress sidebar

Don’t forget to click on the save button to store your widget settings. Repeat the process to add another Envira Gallery widget if you want.

不要忘记单击“保存”按钮来存储您的小部件设置。 如果需要,重复此过程以添加另一个Envira Gallery小部件。

Visit your website when you are done to see multiple image galleries beautifully displayed in your WordPress sidebar.

完成后,请访问您的网站,以查看WordPress侧栏中精美显示的多个图库。

Multiple galleries in WordPress sidebar or widget ready area

We hope this article helped you add multiple galleries in WordPress posts and pages. You may also want to see our guide on how to create a photo gallery with albums in WordPress.

我们希望本文能帮助您在WordPress帖子和页面中添加多个画廊。 您可能还想查看我们的指南,该指南如何在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.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-add-multiple-galleries-in-wordpress-posts-and-pages/

wordpress添加页面

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值