Skip to content

martindubenet/twenty20-acf

Repository files navigation

Twenty20-acf

Child of Twenty Twenty master theme. Both themes are REQUIRED on the server for this theme to work properly

 

How to build a site with this theme

template file plugin dependancy logic
Singular product inc/content-product.php Advanced Custom Fields Display « price and availability » (product-price) from ACF
Singular product inc/content-product.php Advanced Custom Fields Display optional « Taste tags » (tastetag) aside of the featured image of the product.
Singular product inc/content-product.php Advanced Custom Fields Display « wine specifications » (product-specs) as a datagrid.
Singular product inc/content-product.php Advanced Custom Fields Display « bottle specifications » (product-specs) as a datagrid.

 

Maintenance and Development

Theme

  1. Latest version Twenty20-acf on Github
  2. Twenty Twenty (v.1.8)
  3. NodeJs
    1. npm package [Dart Sass](https://www.npmjs.com/package/sass" target="nodejs) for compiling stylesheets from /src/sass/ to /assets/css/.

npm scripts

bash command line description
npm run watch Re-compile the Sass files on every Save action in a .scss file detected by the OS.
npm run compile Compile all Sass files only once. IMPORTANT to run this one before uploading via FTP on production server.

Required plugins for this theme

  • Advanced Custom Fields PRO (ACF) (version 5.10.2) for product detailed pages (/singular-product.php).
    • ACF fields are declared via PHP within the functions.php file. Any key parameters or values that are define in the functions file is prioritise over what is set in ACF database via dashboard.

 

 

 

Releases

No releases published

Packages

No packages published