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.
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?
Comment | File | Size | Author |
---|---|---|---|
#10 | block_config.png | 21.01 KB | mermentau |
Comments
Comment #1
mermentau CreditAttribution: mermentau commentedPlease give the exact details of the problem so that we can re-create the issue for study.
Comment #2
MrNeko CreditAttribution: MrNeko commentedI 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.
Comment #3
mermentau CreditAttribution: mermentau commentedI 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?
Comment #4
MrNeko CreditAttribution: MrNeko commentedThanks for the explanation. Guess I will just use other regions.
Comment #5
mermentau CreditAttribution: mermentau commentedComment #6
Tokoh CreditAttribution: Tokoh commentedI had this same problem.
In the page.tpl.php lines 227 and 229 are shown as:
=============
=============
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
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.
Comment #7
OpsTao CreditAttribution: OpsTao commentedThe 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.
Comment #8
OpsTao CreditAttribution: OpsTao commentedoops, unintentional repeat post; edited to this statement
Comment #9
mermentau CreditAttribution: mermentau commentedDid you try the Visibility settings at the bottom of the block's config page?
Comment #10
mermentau CreditAttribution: mermentau commentedComment #11
OpsTao CreditAttribution: OpsTao commentedThanks 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.
Comment #12
OpsTao CreditAttribution: OpsTao commentedWait... 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.
Comment #13
mermentau CreditAttribution: mermentau commentedAnd 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.