Files
wc-bootstrap/templates/global/wrapper-start.html.twig
magdev c3b16b68c5 Fix unstyled pages: rename base.html.twig to avoid parent collision
The child's templates/base.html.twig was shadowing the parent's
views/base.html.twig (full HTML page shell) because prependPath()
made Twig find the child's minimal wrapper first. Rename to
wc-base.html.twig so the parent's page shell renders correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 12:29:20 +01:00

21 lines
607 B
Twig

{#
# Content Wrapper Start (Bootstrap 5 Override)
#
# Replaces WooCommerce's theme-specific wrapper divs with Bootstrap 5 layout.
# When the parent theme wraps the page (_theme_wrapped), this outputs nothing
# since wc-base.html.twig already provides the container.
#
# WooCommerce PHP equivalent: global/wrapper-start.php
#
# @package WcBootstrap
# @since 0.1.0
#}
{% set _wrapped = _theme_wrapped is defined and _theme_wrapped %}
{% if not _wrapped %}
<div class="container my-4">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
{% endif %}