Viola Documentation
Submit a TicketLiveChat
  • Webibazaar Support
  • Shopify Viola
  • Header
    • Announcement bar
    • Header section
    • Mega menu
  • Overlay Group
    • Newsletter Popup
    • Promotional Popup
  • Theme Settings
    • Colors
    • Typography
    • Layout
    • Buttons
    • Variant pills
    • Inputs
    • Cards
    • Product card review
    • Content containers
    • Media
    • Dropdowns and pop-ups
    • Drawers
    • Badges
    • Social media
    • Search behavior
    • Favicon
    • Currency format
    • Cart
    • Checkout
    • Custom CSS
  • Sections
    • Rich text
    • Video
    • Page
    • FAQ
    • Image gallery
    • Custom Liquid
    • Contact form
    • Collapsible content
    • Multicolumn
    • Email signup
    • Collage
    • Slideshow
    • Scrolling bar
    • Collection list
    • Featured collection
    • Image Banner
    • Featured Product
    • Countdown with product
    • Tab Products
    • Countdown
    • Video with text
    • Image with text
    • Product with image
    • Text with icons
    • Lookbook
    • Testimonials
    • Blog Posts
    • Logo list
    • Social media gallery
    • Image comparison
  • Footer
  • Age verification popup
  • Product page
    • Product tab
    • Quick order list
    • Recently viewed product
  • Color swatches
  • Collection Page
    • Collection banner
    • Meta collection list
    • Product Grid
  • Pages
    • How to create page template?
  • Languages and Currency
  • Additional Settings
  • Dynamic source of color swatch variant image
  • how can reset all the changes I made?
  • Turning your website layout from right to left
  • Use of 'Translate & Adapt' App
  • Continue selling when out of stock
  • Collection filter color swatch from metaobject
  • Quick Links
  • Change Log
    • Version 2.0.0
    • Version 1.0.13
    • Version 1.0.12
    • Version 1.0.11
    • Version 1.0.10
    • Version 1.0.9
    • Version 1.0.8
    • Version 1.0.7
    • Version 1.0.6
    • Version 1.0.5
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
  • Importing our demos
Powered by GitBook
On this page
  • Setting up color swatches
  • Working of swatches
  • Swatch files name
  • 'Files' option in the Shopify admin

Color swatches

PreviousRecently viewed productNextCollection Page

Last updated 11 months ago

Setting up color swatches

You can add color swatches to your product page, collection pages, and home page across the theme using these settings that you see in the below screenshot:

Working of swatches

Once you enable the color swatch settings, Viola will look for any variant with the name "Color."

Swatch files name

The Royal blue swatch needs to be of royal-blue.png name (capitals become lowercase and space will remove).

Pink swatches would need to be of pink.png name (capitals become lowercase).

You must use .png as the .jpg files will not display.

'Files' option in the Shopify admin

  • From your Shopify admin, go to Settings.

  • Click Files.

  • In Files, click Upload files to upload your .png swatch files.

The theme will look at the variant names taken into use; in the case of Royal blue and Pink, it will look for either an with the exact same variant name or a .png file in Settings > Files.

HTML color name
Live Chat Support | Webibazaar Template
Logo