Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
If you are on home of a theme (e.g. bartik) you can see an empty <div class="tabs"></div>
in the code. This also adds a gab
.tabs {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin-bottom: 20px;
}
in page.tpl.php the $tabs
variable always evals to true:
<?php if ($tabs): ?>
<div class="tabs">
<?php print render($tabs); ?>
</div>
<?php endif; ?>
the reason for the TRUE is inside template_preprocess_page(&$variables)
where menu_local_tabs();
is called and always returns an array with 3 keys.
$variables['tabs'] = menu_local_tabs();
Comments
Comment #1
hass CreditAttribution: hass commentedNot only on home. Also in views and other places if the tabs are empty.
Comment #2
droplet CreditAttribution: droplet commentedMany similar issues, some of them get fixed or duplicated or ... closed for some reason:
#1390576: Remove empty HTML tags
#997408: $tabs is always set
Comment #3
sachbearbeiter CreditAttribution: sachbearbeiter commentedas a workaround: