Repository navigation
Description
Summary
With Advanced Layout Options enabled and no individual page-width override, a full-width core Cover on a contained page can stretch its inner content across the viewport instead of retaining the site's content-container width. The inspected post layout provides an inner-width constraint, while the corresponding page layout does not. Expected behavior is full-width background coverage with inner content respecting the contained layout. This matches the reported page-versus-post difference and makes page sections difficult to align with surrounding content.
Customer context
- Product / area: Neve theme, core Cover block on pages.
- Version: Neve 4.2.19; Neve Pro installed, version not supplied.
- Environment: WordPress 7.1.5 reported, not independently verified.
- Reported symptom: Cover content stretches on production pages but is constrained on posts and on a separate test installation.
- Impact: Customer uses custom negative-margin CSS to achieve the desired section layout.
- Evidence limits: No ticket images or saved block markup were available.
Reproduction notes
Source-derived case, not executed:
- Use Neve 4.2.19 with Advanced Layout Options enabled, a contained layout, and no sidebar.
- Leave the page's Enable Individual Content Width control off.
- Add a full-width core Cover containing paragraph content, without explicitly assigning a separate inner-content width.
- View above the configured container width and compare with equivalent post content.
The source predicts viewport-wide inner content on the page and a capped inner container on the post. Exact production and test-site settings were not supplied.
Diagnosis
Conclusion
The advanced layout branch constrains aligned inner containers for posts but has no equivalent page constraint. Combined with viewport-wide block alignment and Core Cover's full-width inner container, this establishes a normal page configuration producing the reported stretch. Confirmation is source-based; the reporter's exact settings and runtime cascade remain unverified.
Where this likely occurs
inc/core/styles/frontend.php—Frontend::setup_layout_subscribers(), lines 362–414 and 449–486, selects advanced layout and emits aligned inner-container width rules scoped to.single-post-container, not.single-page-container.page.php— page template, lines 8–17, renders.single-page-containerwith the selected container class.assets/scss/components/main/_gutenberg.scss—.alignfull, lines 33–38, breaks the Cover background out to100vw.inc/views/pluggable/metabox_settings.php—Metabox_Settings::content_width(), lines 347–402, supplies an alternative page inner-container cap only when individual content width is active.inc/admin/metabox/main.php—Main::add_content_width(), lines 127–138, defaults the individual width control to off.
Engineering notes
- The source-derived case uses a contained page without a sidebar, advanced layout enabled, individual width disabled, and a full-width Cover without a separate explicit inner-content constraint.
- External reference check: Gutenberg's Cover stylesheet defines
.wp-block-cover__inner-containerwithwidth:100%: https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/cover/style.scss . That dependency source is not present in the local theme checkout. inc/customizer/defaults/layout.php—Layout::sidebar_layout_width_default(), lines 46–58, defaults page content to 100% and post content to 70%. Those percentages describe the content area; they do not supply the absent page inner-container cap after viewport breakout.- No general compensating core-Cover rule was found in the Pro sibling. The inspected path belongs to the free theme.
- The layout generator dates to
4c1c2b07fb92from 2020; relevant rules are unchanged between v4.2.18 and v4.2.19. No regression boundary was established.
Test coverage status
e2e-tests/cypress/integration/editor/classic/page.spec.ts, lines 14–20 and 57–65, tests Cover width with individual page content width explicitly enabled. It does not cover the default disabled state or page/post parity. No relevant coverage of that missing path was found during inspection. Tests were not run.
What to verify or explore next
- Compare equivalent full-width Cover markup on a contained page and post with Advanced Layout Options enabled and individual width disabled.
- At a viewport wider than the configured container, measure Cover inner width against surrounding normal content.
- Compare individual width enabled/disabled and advanced layout enabled/disabled.
- Confirm behavior with current Core Cover markup and the reported WordPress version.
Unknowns / follow-up
The reporter's page template, advanced-layout state, per-page overrides, Cover layout attributes, and production/test configuration differences are unknown. The external Cover reference was trunk rather than the exact reported WordPress release.
Confidence
Confidence: 88/100
The inspected selectors distinguish pages from posts exactly as reported, and the full-width Cover rules explain the stretched page content. Runtime confirmation and the reporter's precise configuration are unavailable.
Source: HelpScout #3521676022
Generated by bug-report-triage (ID: bug-report-triage_6b0187e110ae40.27631111)
Activity