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.
When you enable the "Search box" theme element, the search box appears on a new bar below the header, but the bar overlaps with the content below. The distance should be increased.
Comments
Comment #1
ajross CreditAttribution: ajross commentedDo you have a primary menu enabled in the region also, or just the search box?
I've already found a couple other small spacing quirks in the new version that I missed before, so will probably be doing another release within in the next couple weeks to correct these. Please keep sending me anything you find. I appreciate your help!
Comment #2
roball CreditAttribution: roball commentedNo, I don't have the "Primary links" enabled. The only items I have enabled at "Toggle display" are Logo, Shortcut icon and Search box.
Nevertheless, I found a workaround to display the search box nicely within the Navigation bar region: I disabled the "Search box" item from the theme settings and enabled the "Search form" block into the "Navigation bar" region. Then added the following CSS to "css/local.css":
Comment #3
ajross CreditAttribution: ajross commentedCool. Glad you found a fix. Although I know why it is happening and will add a more permanent fix. The #navigation background height is set to auto so it will adjust to different font sizes in the primary links menu. However, the search box is floated right so it doesn't adjust to that. I had always tested it by adding the primary links first, so I missed the problem with the search. Adding a min-height setting should fix it. Or you can set a fixed height for the #navigation that works with what you have. I just was trying to keep it flexible for the different font options.
Comment #4
ajross CreditAttribution: ajross commentedComment #5
ajross CreditAttribution: ajross commentedthis is fixed in latest release (6.x-2.1)
Comment #6
trinsic CreditAttribution: trinsic commentedI dont think this is fixed. on the navigation bar at the top when enough links are listed for the to wrap around the navigation menu overlaps the main content.