I tried to play content to "Header" region but it doesn't show up on my page. Anyone else having this problem and know the solution?

CommentFileSizeAuthor
#10 block_config.png21.01 KBmermentau
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mermentau’s picture

Status: Active » Postponed (maintainer needs more info)

Please give the exact details of the problem so that we can re-create the issue for study.

MrNeko’s picture

I used views to create an exposed form as custom search. I unchecked Add search form to the header at advance header settings. Then I went to block and admin/structure/block and try to assign the views form to "Header" region but it doesn't appear on my page.

mermentau’s picture

I put a block in the header region, but like you it didn't show. It is there as evidenced by view source, but existing site name and logo are covering it up. I'm not sure there is a fix that would make everyone happy here. Can you just sort out your conflicts in the header region by CSS or moving things?

MrNeko’s picture

Thanks for the explanation. Guess I will just use other regions.

mermentau’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)
Tokoh’s picture

I had this same problem.
In the page.tpl.php lines 227 and 229 are shown as:
=============

<div class="clearfix cfie"></div>

print render($page['header']); 

=============
Having the clearfix class seems to force a break so the header is rendered below the rest of the banner and is therefore not visible.
I swapped these two lines (227 and 229) over so that

 print render($page['header']); 
<div class="clearfix cfie"></div>

appears before the clearfix and this seems to fix the problem.
I don't know if this is a bug and I don't know if this is a legitimate fix as it seems to cause some other minor changes to the layout. But for me it worked.

OpsTao’s picture

The method described by Tokoh, transposing the div and print lines as described above, worked for me and I was able to position it as desired with css - except that the block displays on all pages except the front page. The block's config doesn't have any restrictions on what pages it should be visible on. Would like to understand why this is so, and if there's a way to resolve it.

OpsTao’s picture

oops, unintentional repeat post; edited to this statement

mermentau’s picture

Did you try the Visibility settings at the bottom of the block's config page?

mermentau’s picture

Issue summary: View changes
FileSize
21.01 KB
OpsTao’s picture

Thanks for the suggestion. Yes, visibility is set OK. Block in question is visible on all pages except main/home page, despite having no restrictions set.

OpsTao’s picture

Wait... Just realized, the home page uses a different tpl.php than all the other pages; so the change I made needs to be done in the other template file as well. Will check this out to verify.

mermentau’s picture

And you are on the right theme tab at the top of admin/structure/block? I'm not seeing how this could be a Mayo issue though. Just some kind of settings issue somewhere else. Sorry I can't be of more help.