Fix products, search, and newsletter form per REPA-17
- Search: replace static <a href="/?s="> with togglable search overlay form that submits post_type=product for proper WooCommerce results - Newsletter: remove mc4wp shortcode (plugin not installed), replace with self-contained HTML form + JS confirmation handler - Shop by Design: link each design card to real product_tag pages (passive-aggressive, email-signatures, meeting-recovery, etc.) and show live tag.count instead of hardcoded numbers - Category slugs: update $cat_meta mapping to match actual WC slugs (drinkware, wall-decor, stationery, apparel, stickers, accessories) in both front-page.php and archive-product.php - Footer dept links updated to real WC category slugs Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -15,10 +15,12 @@ $cat_slug = $is_category ? $term->slug : 'shop';
|
||||
|
||||
// Category descriptions
|
||||
$cat_desc_map = [
|
||||
'mugs' => '47 ceramics, 12 enamels, and a few we honestly forgot to count. Dishwasher safe. Microwave safe. HR safe (mostly).',
|
||||
'canvas' => 'Print-on-demand wall art for the soul-tired and decoratively passive-aggressive.',
|
||||
'planners' => 'For the person who plans a lot and does a little. Or the other way around.',
|
||||
'apparel' => 'Wear your grievances. Business casual with a quiet fury.',
|
||||
'drinkware' => 'Dishwasher safe. Microwave safe. HR safe (mostly). Mugs, tumblers, and vessels for the passively aggressive.',
|
||||
'wall-decor' => 'Print-on-demand wall art for the soul-tired and decoratively passive-aggressive.',
|
||||
'stationery' => 'For the person who plans a lot and does a little. Or the other way around.',
|
||||
'apparel' => 'Wear your grievances. Business casual with a quiet fury.',
|
||||
'stickers' => 'Stick your opinions where they'll be seen. Water-resistant, like your resolve.',
|
||||
'accessories' => 'The extras that speak for you when you've run out of words.',
|
||||
];
|
||||
if (empty($cat_desc)) {
|
||||
$cat_desc = $cat_desc_map[$cat_slug] ?? 'The complete collection. Curated for the chronically employed.';
|
||||
|
||||
Reference in New Issue
Block a user