You've already forked wp-bootstrap
Switch mobile nav from collapse to offcanvas, add logged-in user avatar and My Account link to offcanvas header, move dark mode toggle to offcanvas footer. Fix admin bar overlapping offcanvas via inline CSS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
762 B
Twig
29 lines
762 B
Twig
<!doctype html>
|
|
<html {{ language_attributes() }}>
|
|
<head>
|
|
<meta charset="{{ charset }}">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{{ wp_head() }}
|
|
</head>
|
|
<body {{ body_class() }}>
|
|
{{ wp_body_open() }}
|
|
|
|
<a class="wp-bootstrap-skip-link" href="#main-content">{{ __('Skip to main content') }}</a>
|
|
|
|
{% block header %}
|
|
{% include 'partials/header-offcanvas.html.twig' %}
|
|
{% endblock %}
|
|
|
|
<main id="main-content" class="{% block main_class %}py-4{% endblock %}">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
{% block footer %}
|
|
{# block_template_part('footer') #}
|
|
{% include 'partials/footer-columns.html.twig' %}
|
|
{% endblock %}
|
|
|
|
{{ wp_footer() }}
|
|
</body>
|
|
</html>
|