官术网_书友最值得收藏!

Adding an image gallery to a product

One of the things that can really sell a product is having high-quality visuals. For some types of products, you may only need one photo. For other markets, especially upper-scale markets, the more photos, the better. Included in WooCommerce is the ability to show off a gallery of images.

Getting ready

You need to have a product on your site. If you haven't already done this, please follow the steps in the preceding recipe, Adding a simple product.

How to do it…

In order to add an image gallery to a product, go through the following steps:

  1. In the WordPress admin, click on the Products menu and navigate to your product.
  2. Once you're on the product detail page, look for the Product Gallery meta box and click on Add product gallery images.
    How to do it…
  3. Just like with the Featured Image configuration, you can either select existing images or upload as many images as you like.
  4. Now that you've added the images to the product gallery, you can arrange them however you like by clicking-and-dragging them into any order.
    How to do it…
  5. Click on Update and you should have a beautiful gallery for your product.
    How to do it…

Tip

Included in WooCommerce is a lightbox gallery. If you click on any of the images in the gallery, it should open the image up in a lightbox. Make sure you upload high-quality images as the lightbox will display the largest size available.

主站蜘蛛池模板: 南昌市| 宝兴县| 商洛市| 和田县| 巴东县| 江孜县| 稷山县| 凌源市| 二连浩特市| 金堂县| 定陶县| 黑河市| 龙井市| 丰原市| 长海县| 张掖市| 虎林市| 长寿区| 虎林市| 宜宾县| 隆尧县| 富锦市| 镇江市| 临武县| 商河县| 昆明市| 安福县| 东莞市| 揭东县| 九江县| 镶黄旗| 班玛县| 中西区| 吴川市| 石城县| 翁牛特旗| 大化| 内乡县| 于田县| 大邑县| 博罗县|