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.
Hi, as the title describe this support request, I want to know how to do this task, I want to set my search box in the same line as my main_menu. How I can do that??
Comments
Comment #1
Pizd CreditAttribution: Pizd commentedI don't know if this is a good way but here is what I did:
1. place the search box in the menu region
2. create a file, my_tweaks.css containing the following:
What do you think? Is this how the pro's (Himerus) would do it?
Comment #2
killua99 CreditAttribution: killua99 commentedHi, Thanks for the reply.
I was thinking something more advance, I want to put my search box with the UI area in the structure zone (structure/blocks) and yes the style is for make it more preatty. I want something like this.
This is posible ?
Comment #3
himerus CreditAttribution: himerus commentedDoing that would require completely using your own theme function for the menu... you could though emulate this via the CSS in #1. Otherwise, you'll have to use custom code to render our your menu, immediately followed by the search box.
However, that seems like a waste of time, as you can place both items as blocks in the menu region, and float/position them accordingly via css.
Comment #4
killua99 CreditAttribution: killua99 commentedOn my omega theme there is not a "menu region" and I tried to create one and place it near the main menu zone (without a great result). I don't think is a waste of time, because if I desactive my CSS I want to see my webpage in the right way. So css display: absolute is not the right way for me.
So is too complex make a new region and place my main menu & search box? in my custom region?. This theme is great for HTML5 but need more flexibility with some regions (for example main menu, and secound menu). Some people will need to change the way or the zone or add another block in that regions don't show a region is a constraint for people who do not have 8 years experience in PHP / MySQL.
If you can guide me how to create a new region for this theme I will love to do something to spread it a "how to".
Maybe I'm totally wrong with this support request but I don't think so.
Thanks for your response :) I really appreciate it.
Comment #5
Argus CreditAttribution: Argus commentedAdding new regions for the 7.x-2 version is described here: http://omega.developmentgeeks.com/documentation/regions/adding-new-regions
Comment #6
cavla CreditAttribution: cavla commentedHi,
Did you get to put the search block in the menu zone?
I am too interested in doing this.
I am using Omega and i just simply want to have the search form in between the primary and secondary navigation..
Thanks for letting me know