Problem: Duplicate headers and footers showing (theme + SPA) Root Cause: Theme's header and footer still rendering when Full SPA mode is active Solution: Remove theme header/footer elements when on WooCommerce pages in Full SPA mode - Hook into get_header and get_footer actions - Remove all theme header/footer actions - Keep only essential WordPress head/footer scripts - Only applies when mode='full' and on WooCommerce pages Changes: - Added remove_theme_header() method - Added remove_theme_footer() method - Added should_remove_theme_elements() check - Hooks into get_header and get_footer Result: ✅ Clean SPA experience without theme header/footer ✅ Essential WordPress scripts still load ✅ Only affects Full SPA mode on WooCommerce pages ✅ Other pages keep theme header/footer
10 KiB
10 KiB