ec5a309555
Remove completed decisions, outdated planning details, and verbose documentation. Keep only essential rules and reference info. Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1.8 KiB
Executable File
1.8 KiB
Executable File
HomeProz WordPress Theme
Custom WordPress theme for HomeProz Real Estate (Albert Lea, MN). Dark/rust brand aesthetic with ACF-powered property listings.
Development Rules
- No emojis - nowhere in code, commits, docs, or conversation
- Tailwind CSS + SCSS - compiled via Vite
- jQuery - for all JS functionality
- Co-locate files - SCSS/JS live alongside PHP templates
- Page-scoped styles - wrap in
.Page_Class_Name { }, early return in JS - Server-side render - no client-side templating
- No custom animations - keep it static and fast
- ASK before architectural decisions
Build
cd wp-content/themes/homeproz
npm run build
Tools
- WP-CLI:
wp --allow-root <command> - Dev commits:
./dev_commit.sh "message"(includes DB snapshot)
Theme Options
Access via homeproz_get_option('key'):
phone,email,address,facebook,tiktok
Custom Post Types
Property (/properties/)
- ACF: price, address, beds/baths/sqft, gallery, documents, listing_agent
- Taxonomies:
property_status(Active/Pending/Sold),property_type,property_location - Location dropdown only shows communities with active/pending properties
Agent (/agents/)
- ACF: phone, email, bio, gallery, social links, order, disabled toggle
- Disabled agents: 404 on profile, office contact on property cards
Key Helpers
// Get locations with active/pending properties only
$locations = homeproz_get_active_locations();
// Contact page with property inquiry prefill
$url = add_query_arg('property', urlencode($title), home_url('/contact/'));
Page Classes
Home_Page, Properties_Archive, Single_Property, About_Page, Contact_Page, Blog_Archive, Single_Post, Agents_Archive, Single_Agent, Search_Page, Error_404