Add option to use a single header HTML structure for both desktop and mobile
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
調査の方向性
まず、Header Builder Customizer の設定と、デスクトップ/モバイルのレンダリングのエントリーポイントを追跡します。Footer Builder に既存の single-layout 機能と比較して、想定される設定と動作を特定します。新しい toggle がデフォルトで個別のレンダリングを維持し、条件付きで単一の header 構造を出力し、モバイル toggle または hamburger の動作を維持できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Impact: 75 · Confidence: 95 · Complexity: 75
Description
Problem
The Neve Header Builder currently outputs separate HTML nodes for the desktop and mobile header views, hiding the inactive view via CSS. This creates duplicated HTML elements (logos, navigation menus, buttons) which inflates the DOM size, affects page weight, and can create duplicate accessibility text/links for screen readers.
Desired Behavior
Provide a Customizer setting (e.g., "Use desktop header layout on mobile") that allows users to render only a single set of header HTML. When enabled, the theme should rely purely on responsive CSS to handle the transition to mobile layout, eliminating the secondary mobile-specific HTML wrapper entirely. This should mirror the capability currently available in the Neve Footer Builder.
Acceptance Criteria
- Add a toggle in the Header Builder settings to apply the desktop layout/HTML to mobile devices.
- When enabled, the builder conditionally skips rendering the mobile header wrapper and outputs only one unified header structure.
- Ensure mobile toggle/hamburger behaviors continue to function seamlessly when inheriting the desktop header HTML.
- Maintain current separate-node rendering as the default to ensure backwards compatibility for existing sites.
Customer Context
An intermediate-level pro user is requesting a way to prevent duplicate header DOM nodes to optimize page performance and SEO/accessibility metrics. They note the footer builder already allows using one layout across devices and they desire the same functionality for the header builder to reduce DOM complexity.
Root Cause Analysis
The root cause is an architectural decision in Neve's Header Builder to render specific DOM structures for distinct device views (Desktop vs. Mobile) to allow full flexibility in building completely different headers per device. While this enables high customizability, it forces users with simpler header designs to carry the performance penalty and accessibility confusion of duplicated DOM elements that are simply display-toggled via CSS. The gap is the lack of a capability to opt out of this device-split rendering in favor of a single, purely CSS-responsive DOM tree.
Reasoning
The customer has identified a legitimate optimization gap in the Neve Header Builder. Rendering separate HTML branches for desktop and mobile increases DOM size and can cause duplicate accessibility text or navigation links. The request to optionally mirror the desktop header HTML on mobile—relying on responsive CSS instead of duplicated nodes—is well-reasoned and aligns with performance best practices.
Source: HelpScout #3383993106
Generated by feature-request-triage workflow (ID: feature-request-triage_6a5349954b5fe5.70064094)
- 主要言語
- PHP
- スター
- 307
- フォーク
- 88
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Codeinwp/neve のほかの issue
-
Primary menu dropdown arrows gain circular button decoration in Neve 4.2.13対応中かも @girishpanchal30 が 1 日前に担当しました。 オープンbug-report bug-report-triage customer report regression
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Codeinwp/neve#4636 · コメント 7 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Generic link hover color overrides header cart icon color対応中かも @HardeepAsrani が今日担当しました。 オープンbug-report bug-report-triage customer report regression
Codeinwp/neve#4643 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Generic link hover color overrides My Account header component color対応中かも @HardeepAsrani が今日担当しました。 オープンbug-report bug-report-triage customer report regression
Codeinwp/neve#4642 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
feature-request-triage
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
feature-request-triage
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
UX
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ProfessionalWiki/NeoWiki#1573 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
endoflife-date/endoflife.date#11194 ·
メンテナーはふだん 1 日以内に返信