Change how product cards look

SAKU Blog Duplicate: How to change the look of product cards

  • Duplicate blog posts in one click

  • Easily add dynamic product cards to posts

  • Edit in the same standard editor you already know

NEW
NEW
SAKU Blog Duplicate: How to change the look of product cards

App features

[Free plan]
• Duplicate blog posts (up to 5 per month)
• Blog post templates
• Save specific search filters with saved views

[Pro plan]
• Unlimited blog post duplication
• Easily add dynamic product cards inside blog posts

This article explains how to change the color, size, layout and more of the product cards in your blog articles. You can match them to your store's design with the theme editor settings.

In this article

  • How to open the settings
  • A list of settings (Card, Text, Button)
  • Card layout, how images are shown, and how cards look on smartphones
  • Class names for fine-tuning with CSS (for people who know CSS)

Where to go: Shopify admin → Apps → SAKU Blog Duplicate → "Setup guide" on the home page → "Open theme editor"


What you need before you start

  • SAKU Blog Duplicate is installed
  • The Pro plan, or a development store (product cards are a paid feature)
  • Product cards are set up (permissions granted, and the "Product cards" app embed turned on in the theme editor). See "How to add dynamic product cards to blog articles".


1️⃣ Open the settings in the theme editor

Click "Open theme editor" in any of these places:

  • Step 3 of the "Setup guide" on the home page
  • The "Preview" box on the right of the page where you insert product cards ("Add product cards between paragraphs")
  • "Open these settings in the theme editor" on the "Help" page

The "Add product cards between paragraphs" page. The "Open theme editor" link is in the "Preview" box on the right

The red box on the left is the inserted product card, and the red box on the right is "Open theme editor" in the "Preview" box.

The "Product cards" settings open under "App embeds" on the left of the theme editor. For getting the product card feature itself ready, see "How to add dynamic product cards to blog articles".

The "Product cards" settings in the theme editor: the "Card" section

There are many settings, but changing just these three is usually enough to start: (1) Button color, (2) Button label, and (3) Layout (Horizontal / Vertical). Adjust the others only if you need to. To choose a color, click the color square.


2️⃣ Change the "Card" settings

Setting Options (default)
Layout "Horizontal" (default) / "Vertical"
Content alignment "Left" (default) / "Center" / "Right"
Card width 40–100% (in steps of 5). Default: 100
Card alignment "Left" (default) / "Center" / "Right"
Image size 60–600px (in steps of 10). Default: 300
Image ratio (the shape of the image) "Square (cropped)" (default) / "Match product image"
Product images "First image only" (default) / "All images (thumbnails)"
Thumbnail size 24–96px (in steps of 4). Default: 36
Show border Checkbox. Default: off
Border width 0–4px. Default: 1
Border color Default: light gray
Corner radius (how rounded the corners are) 0–24px (in steps of 2). Default: 12
Match theme background Checkbox. Default: on
Card background Default: white. Used when "Match theme background" is off


3️⃣ Change the "Text" settings

Setting Options (default)
Product title size 12–28px. Default: 16
Price size 12–28px. Default: 16
Use custom text colors Checkbox. Default: off. When off: "Off: follow the theme's text color."
Product title color Default: near black. Used when "Use custom text colors" is on
Price color Default: near black. Used when "Use custom text colors" is on


4️⃣ Change the "Button" settings

Setting Options (default)
Button color Default: near black
Button text color Default: white
Button corner radius (how rounded the corners are) 0–24px (in steps of 2). Default: 8
Button label Text. "Leave empty to use the automatic label (Add to cart / カートに追加)." In the app's "Preview", long labels are cut off at 60 characters.
Show quantity selector Checkbox. Default: off
Show remaining stock Checkbox. Default: off. "Shows “N left in stock” for inventory-tracked variants."

The "Product cards" settings in the theme editor: the "Text" and "Button" sections

When "Show quantity selector" is on, the card shows "−" and "+" buttons and a quantity field. The quantity is at least 1 and at most 99. For products whose inventory is tracked and that don't allow overselling, the stock level is the maximum.


5️⃣ Click "Save" at the top right

After changing the settings, click "Save" at the top right of the theme editor. Once saved, the changes are also reflected in the "Preview" on the app's product card insertion page. Values outside the allowed range are rounded to the nearest allowed value. If the colors in the preview look different, check the real article page on your store.


What customers see on your store

  • With the "Horizontal" layout, the image is on the left and the product information is on the right. With "Vertical", the information is below the image. On screens 520px wide or narrower (such as smartphones), cards are always shown vertically, whatever the setting.
  • When "Product images" is set to "All images (thumbnails)" and the product has two or more images, small thumbnails are shown (up to 8). If variants have their own images, choosing a variant also switches the main image.
  • Prices are formatted to match your theme's language (for example, "¥1,000" in Japanese).
  • Cards are drawn only as they come close to the visible area of the screen, so they don't slow down the article page.
  • When "Show remaining stock" is on, "N left in stock" is shown.

Fine-tuning with CSS (for people who know CSS)

This section is for people who know CSS. Most people can skip it.

If the settings aren't enough, you can target the following classes in "Theme settings" → "Custom CSS" in the theme editor. These class names won't change.

.saku-duplicate_container
.saku-duplicate_card
.saku-duplicate_media
.saku-duplicate_image_link
.saku-duplicate_image
.saku-duplicate_thumbnails
.saku-duplicate_thumbnail
.saku-duplicate_body
.saku-duplicate_title
.saku-duplicate_prices
.saku-duplicate_price
.saku-duplicate_compare_price
.saku-duplicate_variants
.saku-duplicate_button
.saku-duplicate_stock
.saku-duplicate_buy
.saku-duplicate_quantity (_minus / _input / _plus are also available)

Example: to make the product name bold, write:

.saku-duplicate_title { font-weight: 700; }

Where to write it, and which part to change:

  1. In the theme editor, open the "Theme settings" → "Custom CSS" box.
  2. If CSS is already there, don't delete it. Start a new line at the very bottom and add the line above.
  3. Click "Save" at the top right. You're done when the product name turns bold on your store's article page.
Part Characters Can you change it?
Class name .saku-duplicate_title Don't change it as typed. To style a different part, pick that part's class name from the list above
Property name font-weight You can change it (choose one that suits the class)
Value 700 Change only this number. 700 is bold; 400 is normal weight

Here is a full example, before and after.

Before (the "Custom CSS" box is empty):

(nothing written)

After (product name bold, and button corners squared off):

.saku-duplicate_title { font-weight: 700; }
.saku-duplicate_button { border-radius: 0; }

Troubleshooting

  • You changed the settings, but your store doesn't reflect them
    Check that you clicked "Save" at the top right of the theme editor. Reload the page to see the changes.
  • The colors don't change
    Text colors are only used when "Use custom text colors" is on, and the card background color only when "Match theme background" is off.
  • The cards themselves don't appear
    See "What to check when product cards don't show".