Zid Themes Docs
  • Getting started
  • Twig reference
  • Theme file structure
  • zid-theme package
  • Theme Templates and Data
    • layout.twig
  • Store language and currency
  • Home template modules
  • Product template
  • Cart template
  • Settings Schema
    • text
    • number
    • textarea
    • select
    • radios
    • checkbox
    • checkboxes
    • range
    • color
    • image
    • product
    • category
    • category products
    • list
    • fieldset
  • Data reference
    • locals
    • store
    • cart
    • product
    • products list
    • category
    • categories list
    • session
    • customer
    • faqs
    • blogs
    • blog
    • page
    • main menu
    • request
    • orders
    • addresses
    • store payment methods
    • store shipping methods
    • store banks
    • asset_url
    • header_meta_tags
  • Zid-api Library
    • Product
    • Category
    • Cart
    • Blog
    • Customer
    • Settings
  • Upload themes and more
Powered by GitBook
On this page

Was this helpful?

Theme file structure

The following is the valid structure of a zid theme:

$ root
** required files
.
┃
┃─── layout.twig **
┃─── header.twig **
┃─── footer.twig **
┃
┃─── templates (accepted extensions: [ '.twig' ] )
┃    ┃─── 404.twig **
┃    ┃─── home.twig **
┃    ┃─── search.twig
┃    ┃─── products.twig **
┃    ┃─── product.twig **
┃    ┃─── categories.twig **
┃    ┃─── category.twig **
┃    ┃─── blogs.twig **
┃    ┃─── blog.twig
┃    ┃─── faqs.twig **
┃    ┃─── cart.twig **
┃    ┃─── shipping-and-payments.twig **
┃    ┃─── account-addresses.twig **
┃    ┃─── account-orders.twig **
┃    ┃─── account-profile.twig **
┃
┃─── modules (accepted extensions: ['.twig'] ) /optional/
┃
┃─── common (accepted extensions: ['.twig'] ) /optional/
┃
┃─── locals (accepted extensions: ['.json'] ) /optional/
┃
┃─── assets /optional/
PreviousTwig referenceNextzid-theme package

Last updated 3 years ago

Was this helpful?