fix: add wp_body_open to WooCommerce header
This commit is contained in:
20
.paul/codebase/radar/codebase-memory-plan.txt
Normal file
20
.paul/codebase/radar/codebase-memory-plan.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
Timestamp: 2026-05-21T14:32:06+02:00
|
||||
Mode: plan
|
||||
Scope: InPost Pay / wp_body_open / WooCommerce product pages
|
||||
|
||||
codebase-memory-mcp:
|
||||
- list_projects did not include this repository.
|
||||
- index_repository(mode=fast) for C:\visual-studio-code\krolewskie-miody.pl timed out after 120s.
|
||||
- Status: degraded.
|
||||
|
||||
Fallback targeted scan:
|
||||
- `rg -n "wp_body_open|<body|body_class|get_header\(|header\.php|woocommerce_before_single_product" wp-content\themes wp-content\plugins\inpost-pay wp-content\plugins\woocommerce -g "*.php"`
|
||||
- `wp-content/themes/betheme/header.php` has `<body <?php body_class(); ?>>` followed by `<?php wp_body_open(); ?>`.
|
||||
- `wp-content/themes/betheme/header-shop.php` has `<body <?php body_class(); ?>>` without `wp_body_open()`.
|
||||
- `wp-content/themes/betheme/woocommerce.php` calls `get_header( 'shop' );`.
|
||||
- `wp-content/themes/betheme/single-template.php` calls `get_header( 'shop' );` for `single-product` and `shop-archive` templates.
|
||||
- `wp-content/plugins/inpost-pay/src/hooks/front/FrontWidgetV2.php` registers `add_root_script_after_body_open` on `wp_body_open`.
|
||||
|
||||
Conclusion:
|
||||
- The homepage fix covered `header.php`, but WooCommerce product/shop pages can render through `header-shop.php`.
|
||||
- Add `wp_body_open()` directly after the `<body>` tag in `header-shop.php`.
|
||||
Reference in New Issue
Block a user