block__content div is omitted from preview when "Use Experience Builder for page templates in this theme." is enabled

Created on 22 May 2025, 12 days ago

Overview

In Olivero, when the user checks the "Use Experience Builder for page templates in this theme." in the theme settings the page markup is changed:

⬜️ Use Experience Builder for page templates in this theme not enabled:

<main role="main">
    <div class="region region--content grid-full layout--pass--content-medium" id="content">
        <div class="block block-system block-system-main-block" id="block-olivero-content">
            <div class="block__content">

            </div>
        </div>
    </div>
</main>

☑️ Use Experience Builder for page templates in this theme enabled:

<main class="site-main" role="main">
    <div class="region region--content grid-full layout--pass--content-medium" id="content">

    </div>
</main>

This has many nuanced and fairly complex ramifications particularly around styling (in Olivero the CSS is written in such a way that it assumes/requires that the .block-system-main-block div sits inside the layout--pass--content-medium div for example).

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

Page builder

Created by

🇬🇧United Kingdom jessebaker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024