I was hoping to get the Superfish menu inline with the site logo, but everything i have tried so far has failed:
- gpanels does not accept superfish into its blocks (I have inserted the 3 blocks 33*34*33 php snippet into page.tpl.php, it showed up on blocks, but after selection, the superfish menu does not show up inside the column)
- reducing the px sizes of items does not bring them inline

Any ideas on how to get it to work? Would this work with Gpanels or is there another way?

Many thanks!

CommentFileSizeAuthor
inline_probs.png70.17 KBrnm_UK

Comments

Jeff Burnz’s picture

First thing is careful using 6.x-3.x, its in development and could be changing a lot. If you want more stable use the 6.x-2.x-dev version as that won't be changing except for bug fixes.

So to achieve this in any version of AT you will need to move the $menu_bar variable code inside the header (that will be the easiest way), then position it - I would probably set position: relative; on the #header (and set a height on it) and then use position:absolute; to position #menu-bar although you could as well use floats if you prefer.

rnm_UK’s picture

Thanks Jeff, this solved it. Brilliant theme by the way, but will go for another one of your themes, Newswire for our next site. Thanks again!

rnm_UK’s picture

Status: Active » Closed (fixed)
ursula00’s picture

Component: Subtheme » CSS/HTML

I too have this problem. I have a superfish menu which I have assigned to the Menu Bar region. When I used absolute positioning for #menu-bar it overlaps the logo when the browser is resized, so I'm now using floats. Trouble is the menu bar is clearing and I would like it to just float right but the clearfix class is added to the nav tag is there anyway to remove this?

ursula00’s picture

Version: 6.x-3.x-dev » 7.x-3.0
Status: Closed (fixed) » Active

Sorry reopened thread

Jeff Burnz’s picture

clearfix is added via an attributes array, you can remove attributes in preprocess, something like this:

function pixture_reloaded_preprocess_page(&$vars) {
  $vars['branding_attributes_array']['class'] = array_values(array_diff($vars['branding_attributes_array']['class'], array('clearfix')));
}
ursula00’s picture

Wouldn't that remove clearfix for all elements on the page?

Thanks for your suggestion but I have managed to get everything done by moving the print header declaration on the page template and setting the superfish menu to the header section. By using just css I have got it positioned in the correct place.

betarobot’s picture

Thanks Jeff! Worked just fine. But how in my base theme those clearfix are not added at all... anyway.

@ursula00 it removes .clearfix only for some element in array. In this example it removes .clearfix for #branding.

ursula00’s picture

Ah right I see thank you!