Skip to content

Full-width Group content is left-anchored with individual page content width enabled #4712

Open

Description

@pirate-bot

Summary

A full-width core Group can display its constrained content toward the left edge rather than centered within its background. Source inspection identifies this behavior on contained pages with Advanced Layout Options enabled and individual content width enabled. Expected behavior is a full-width background with the constrained content centered. The resulting offset prevents the requested section layout without additional styling.

Customer context

  • Product / area: Neve theme, core Group block layout; Neve Pro also installed.
  • Version: Neve 4.2.19; Pro version not supplied.
  • Environment: WordPress 7.1.5 reported, not independently verified.
  • Reported symptom: Group content appears left-aligned; customer dates the behavior to 2024.
  • Evidence limits: No ticket images were available. Exact block attributes and page settings were not supplied.

Reproduction notes

Source-derived case, not executed:

  1. Use Neve 4.2.19 with Advanced Layout Options enabled and a contained page without a sidebar.
  2. Enable Individual Content Width for that page, retaining 100%.
  3. Add a full-width core Group with centered constrained content and a paragraph.
  4. View at a viewport wider than the configured container. Inspect whether the capped inner wrapper is left-anchored within the full-width background.
    The reporter supplied the symptom but not these exact settings; this constructed case does not establish their site's precise cause.

Diagnosis

Conclusion

Source inspection establishes a reachable Group-centering defect with Advanced Layout Options enabled, a contained page, and individual content width enabled. The page-level rule constrains the Group inner wrapper without centering it. This matches the reported symptom, but the reporter's exact configuration remains unknown; no runtime reproduction was performed.

Where this likely occurs

  • inc/views/pluggable/metabox_settings.php — Metabox_Settings::init(), lines 49–55, registers page-level width CSS on wp_enqueue_scripts at priority 999.
  • inc/views/pluggable/metabox_settings.php — Metabox_Settings::content_width(), lines 347–402, adds maximum widths to aligned blocks' inner wrappers without horizontal margins.
  • assets/scss/components/main/_gutenberg.scss — .alignfull, lines 33–38, expands the outer block to viewport width.
  • inc/core/styles/frontend.php — Frontend::setup_layout_subscribers(), lines 362–412 and 462–486, supplies no general page inner-wrapper centering rule in the advanced branch. The nonadvanced branch does supply mobile-base margin:auto; that branch is not the constructed failing case.

Engineering notes

  • External reference check: WordPress's wp_restore_group_inner_container() restores the inner wrapper for a classic theme without theme.json and moves layout classes onto it. Core constrained-layout rules center that wrapper's children, not the wrapper itself: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/block-supports/layout.php . This was checked externally, not in a local WordPress checkout.
  • With a sufficiently wide viewport, the theme's capped block-level wrapper remains at the start of the viewport-wide Group. Centering its children does not center the wrapper within the background.
  • Relevant Neve Pro styling was inspected without finding a compensating general core-Group rule.
  • git blame attributes the page width rules to b4a6dc276f from 2020. No previously working Neve release boundary was established; the customer's 2024 date alone does not establish a regression.

Test coverage status

tests/test-neve-css-style-tags.php, test_frontend_inline_style_strips_html(), lines 99–119, checks generated selector presence, not centering. No relevant Group geometry coverage was found during inspection. Tests were not run.

What to verify or explore next

  • On Neve 4.2.19, compare a contained page with Advanced Layout Options enabled and individual content width enabled against the same page with the override disabled.
  • Use a full-width core Group with centered constrained layout and paragraph content; compare outer and inner bounding rectangles on desktop and mobile.
  • Confirm the rendered Group wrapper and stylesheet cascade on the reported WordPress version.

Unknowns / follow-up

The reporter's Advanced Layout setting, individual width setting, saved block attributes, child-theme status, and computed styles are unavailable. The external core reference was trunk, not a verified checkout of the reported WordPress release.

Confidence

Confidence: 88/100

The page-width selector and classic Group wrapper contract expose a concrete centering failure under normal settings. Confidence is limited by the absence of runtime geometry and the reporter's saved configuration.


Source: HelpScout #3521676022
Generated by bug-report-triage (ID: bug-report-triage_6b0187e110ae40.27631111)

Activity

  1. added theissue type on Nov 21, 2026
  2. added
    customer report
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportbug-report-triagecustomer report

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions