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.
If a custom masthead image is selected and the header height is specified, the image is used, but the height of the header is not used.
The bug can be easily fixed adding:
<?php if (theme_get_setting('mastheadfixedfluid') ) {
height: print theme_get_setting('mastheadfixedfluid')
px;
<? } ?>
?>
after line 143 on page.tpl.php:
background-image:url('/<?php print theme_get_setting('masthead_bg_path') ?>');
Comments
Comment #1
FiNeX CreditAttribution: FiNeX commentedI'm sorry, the pasted code is not displayed correctly with the "php" delimiter. The following is the right bug report:
If a custom masthead image is selected and the header height is specified, the image is used, but the height of the header is not used.
The bug can be easily fixed adding:
after line 143 on page.tpl.php:
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedHi,
Thank you for the correction, I can confirm that it works.
Question:
I do not know PHP but I saw the following code and removed it from the page.tpl.php and it seemed to remove the text from overlapping the masthead. Would this modification affect other code elsewhere?
Thanks
Comment #3
jrglasgow CreditAttribution: jrglasgow commented@FiNeX
your fix in #1 has been put in CVS and will appear in version 6.x-1.4
Comment #4
jrglasgow CreditAttribution: jrglasgow commentedComment #5
FiNeX CreditAttribution: FiNeX commentedGood, thanks for it :)