Files
wc-bootstrap/templates/global/wrapper-start.html.twig

21 lines
607 B
Twig
Raw Permalink Normal View History

{#
# 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 %}