From 9bd61b4236160e20aa7dbf4bc34cb33d5d1e895c Mon Sep 17 00:00:00 2001 From: FrontendDev Date: Sun, 3 May 2026 10:57:54 -0400 Subject: [PATCH] Fix mobile hamburger menu, designs page template, product tab styling, and stock field (REPA-78) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add mobile hamburger toggle button and full-screen nav drawer (≤1024px) - Fix product tab styles: complete tab CSS without relying on WC parent selectors; explicit wc-single-product enqueue on product pages - Fix STOCK field: conditionally hide when get_stock_quantity() returns null instead of showing '— units' - Add page-designs.php template + template_include filter so /designs/ uses themed layout instead of raw WooCommerce output - Align nav/footer terminology: 'Canvas' → 'Wall Decor' in nav fallback; correct broken category URL slugs (mugs→drinkware, canvas→wall-decor, planners→stationery, blog→the-memo); add 'Bulk / HR' to mobile drawer Co-Authored-By: Paperclip --- theme/functions.php | 57 +++++++++++++- theme/js/rar.js | 20 +++++ theme/page-designs.php | 112 +++++++++++++++++++++++++++ theme/style.css | 112 +++++++++++++++++++++++++++ theme/woocommerce/single-product.php | 4 +- 5 files changed, 303 insertions(+), 2 deletions(-) create mode 100644 theme/page-designs.php diff --git a/theme/functions.php b/theme/functions.php index 8ac4bd1..e53a22b 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -127,7 +127,7 @@ function rar_nav() { ['Shop', $shop_url], ['Designs', home_url('/designs/')], ['Mugs', home_url('/product-category/drinkware/')], - ['Canvas', home_url('/product-category/wall-decor/')], + ['Wall Decor', home_url('/product-category/wall-decor/')], ['Planners', home_url('/product-category/stationery/')], ['Apparel', home_url('/product-category/apparel/')], ['The Memo', home_url('/the-memo/')], @@ -162,8 +162,45 @@ function rar_nav() { Cart () + + + + + get_stock_quantity(); if ($stock_qty !== null): ?>
Stock
-
get_stock_quantity() ?? '—'); ?> units
+
units
+