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

  • WooCommerce Cookbook
  • Patrick Rauland
  • 240字
  • 2021-07-23 19:35:06

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.

主站蜘蛛池模板: 辽中县| 江西省| 津南区| 夹江县| 雷波县| 平乐县| 遂平县| 纳雍县| 凌海市| 额尔古纳市| 恩平市| 文水县| 平凉市| 张北县| 延津县| 灵武市| 高要市| 太仆寺旗| 葵青区| 弋阳县| 隆尧县| 麻栗坡县| 扶余县| 永靖县| 西和县| 甘孜| 泰宁县| 谢通门县| 墨玉县| 东乡县| 龙川县| 田阳县| 子洲县| 洞口县| 承德县| 新巴尔虎右旗| 恩平市| 淳安县| 同江市| 南澳县| 康乐县|