ZEST theme
Try Zest freeResourcesOther solutions
  • What is Zest theme
  • Changelog
  • Refund policy
  • Support policy
  • Getting started
    • Install Zest theme
    • Set up my store as Zest demo
    • Update Zest theme
    • Theme license & Transfer
  • build for success series
    • Landing page like puravida
  • Page's global sections
    • General settings
    • Announcement bar
    • Banner logo 🔥
    • Header
    • Footer
    • Menu
      • Add a banner to mega menu
      • Add products to mega menu
      • Add collections to mega menu
      • Add custom cards to mega menu
      • Customize a hovering menu
    • Mobile navigation bar
    • Age verifier pop-up
    • Pop-up
  • Theme sections
    • Auto-scrolling promotion
    • Before/ After image slider
    • Blog posts
    • Collage tab
    • Collapsible tab
    • Collection list
    • Collection list slider
    • Collections showcase 🔥
    • Collection tab
    • Contact form
    • Countdown timer
    • Custom content
    • Custom liquid & HTML
    • Favorite collection 🔥
    • Favorite products
    • Featured product
    • Featured product slider
    • Featured collection
    • Gallery images
    • Handpicked products
    • Highlight text with image 🔥
    • Image with text
    • Image with text overlay
    • Image with text slider
    • Layered images 🔥
    • Logo list
    • Lookbook
    • Map
    • Mixed image cards 🔥
    • Multicolumn
    • Newsletter
    • Products bundle
    • Product tabs
    • Promotion banner 🔥
    • Press
    • Rich text
    • Slideshow
    • Testimonials
    • Video
    • Video hero
  • Theme settings
    • General settings
    • Animations
    • Cart
    • Checkout
    • Color swatches
    • Colors & Color schemes
    • Currency format
    • Cookies banner
    • Layout
    • Product card
    • Product quick view
    • Search
    • Social media
    • Theme style
    • Typography
  • Collections & Products
    • Product page
      • Product template
      • Product description
      • Breadcrumbs
      • Product information
      • Recently viewed products
      • Product recommendations
      • Quick order list 🔥
    • Collection page
      • Collection template
      • Collection sections
        • Collection banner
        • Product grid
    • Collections list page
  • Languages & Countries/Regions
    • Languages
    • Countries/ Regions
  • Other pages
    • 404 page
    • About us
    • Blogs
    • Blog posts
    • Cart & Checkout
    • FAQs page
    • Password
    • Search page
  • FAQs
    • Generic
      • Add custom fonts
      • Add custom CSS
      • Add custom badges to the product card and product page
      • Add gift wrap option to my cart
      • Add product review apps to my theme
      • Change the copyright text at the footer
      • Compare Zest with other Shopify themes
      • Does Zest support RTL languages?
      • JavaScript events for developers
      • How to migrate your Zest theme to version 7.0.0
      • My store has a low speed score - How can I improve it?
      • Show Payment icons on the Footer 🔥
    • Product page
      • Add a size chart to your product page
      • Add recipient fields to my gift card product
      • Customize the checkout
      • Edit product breadcrumbs using metafields
      • How to remove 'Powered by Shopify' in Copyright
      • Remove text Tax included and Shipping calculated at checkout below the product price
      • Set up quantity rules and volume pricing 🔥
    • Collection page
      • Change the default sorting of a collection
    • Shopify functions
      • Combined listings app 🔥
      • Does Zest support Section groups?
      • Get to know dynamic checkout buttons
  • Troubleshooting
    • Mega menu not working when changing the store languages
Powered by GitBook
On this page
  • Create a backup of your theme
  • Create a customization file
  1. FAQs
  2. Generic

Add custom CSS

PreviousAdd custom fontsNextAdd custom badges to the product card and product page

Last updated 1 year ago

Although we create Zest theme with a variety of customizable features and settings, it's likely that sometimes you still want to adjust and fine-tune some elements beyond what is already available in the theme editor.

Customizations range in complexity. An easy way to make these styling adjustments is by using CSS.

Modifying theme code requires you to have a certain knowledge of web design languages (CSS, HTML, and Liquid). If you are not familiar with them, avoid modifying the theme code to prevent unwanted technical issues.

Check out for a quick CSS tutorial.

Create a backup of your theme

We recommend you back up your work before attempting any theme file adjustments. If errors are encountered, you can use the duplicated (backup) version to restore to the original function and styling.

Steps

  1. In your Shopify admin > Online store, click Actions.

  2. Select Duplicate.

  3. Rename the copied file.

Create a customization file

All overriding CSS styles should be added to the same file in the Assets folder. This makes it easier to track and carry across customizations when updating your theme.

Follow the steps below to create a customization file in your theme code.

1. In your Shopify admin > Online store, click Edit code.

2. Navigate the Assets folder > click Add a new asset.

3. In the popup, click Create a blank file.

4. Select the Extension and enter the File name as custom.

5. Click Done.

6. After the new asset is created, go to the Layout folder > choose file theme.liquid.

7. In theme.liquid file, find and copy this code line:

<link rel="preload" href="{{ 'drawer-component.css' | asset_url }}" as="style" onload="this.onload=null;this.rel='stylesheet';">

Then, move to a new line and paste the code you've just copied.

8. In the new code line, change the file name from drawer-component to custom (the new file name).

9. Click Save.

If you want to make complex customizations, consider hiring a Shopify Expert or a third-party developer.

is also a great resource to get advice from other store owners on a wide range of topics.

Shopify Community
W3Schools