Skip to content

About

Astra child theme for terrariumstation.com — custom functions and dark-mode toggle (legacy)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

terrarium-station-theme

The Astra child theme behind terrariumstation.com — a WooCommerce shop for captive-bred reptiles and invertebrates. Two files: style.css (design tokens and the storefront styling) and functions.php (the WooCommerce hooks).

What functions.php adds

  • Enqueues the child stylesheet after Astra's.
  • A dark-mode toggle injected in the footer.
  • The scientific name printed under each product title on single product pages (woocommerce_single_product_summary, priority 7).
  • A custom Care guide product tab alongside the WooCommerce defaults (woocommerce_product_tabs).

Install

Requires WordPress with the Astra parent theme and WooCommerce.

  1. Copy this folder to wp-content/themes/terrarium-station-theme/.
  2. Appearance → Themes → activate Astra Child – Terrarium Station.

The scientific name is read from a product attribute named scientific-name; the care-guide tab reads the _habitat_info and _diet_info post meta. Products without them render nothing for those parts, which is intended.

Status

Legacy: this is the theme as shipped for the site's first design. The live site has since moved most presentation into snippets and the registry; the theme is published as the record of what the storefront was built on, not as a maintained product.

Licence

MIT. Built by Emmanuel Orta.

About

Astra child theme for terrariumstation.com — custom functions and dark-mode toggle (legacy)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages