Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Create a site with navbar location set to normal/default and fluid containers, your container class gets repeated twice eg:
<header class="navbar navbar-inverse container-fluid" id="navbar" role="banner">
<div class="container-fluid">
...
Mistake is templates/system/page.html.twig:71
<header{{ navbar_attributes.addClass(navbar_classes) }} id="navbar" role="banner">
{% if not navbar_attributes.hasClass('container') %}
<div class="{{ container }}">
{% endif %}
You are only checking to see if the container class has been applied previously, whereas it should test container and container-fluid.
Comment | File | Size | Author |
---|---|---|---|
#6 | setting_fluid_container-2845585-6.patch | 1.15 KB | markhalliwell |
Comments
Comment #2
mzealey CreditAttribution: mzealey commentedComment #3
njagojevic CreditAttribution: njagojevic commentedComment #4
markhalliwellThis should be using the existing
container
variable, not quoted strings.Also, the above patch misses the closing div below that does the same thing.
Comment #6
markhalliwell