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.
There is a problem with core themes showing secdonary tabs, such as Bratik. This occurs in webform and Media moduel settings, forexample.
page.tpl.php
I changed the tabs code from:
<?php if (!empty($tabs['#primary'])): ?>
<div class="tabs"><?php print render($tabs); ?></div>
<?php endif; ?>
To:
<?php if (!empty($tabs['#primary']) || !empty($tabs['#secondary'])): ?>
<div class="tabs"><?php print render($tabs); ?></div>
<?php endif; ?>
Comments
Comment #1
montesq CreditAttribution: montesq commentedCan we have more details?
Except Bartik, with which theme do you reproduce?
Can you provide a screenshot of what you get and what is expected?
Could you give the steps to reproduce?
Comment #2
Amarjit CreditAttribution: Amarjit commentedHello montesq,
This is to do with the Bratik theme.
As an example:
The reason for this is page.tpl.php does not contain
print render($tabs);
This may be part of a bigger problem - I am not sure.
Hope this helps.