Main Menu beside the logo

GK User
Wed Jan 26, 2011 12:32 pm
Hi Guys,

could you tell me how i have to change the code that the menu is right beside the logo (in the same row)?
Btw - good job with the gavern framework - i hope it will be out "blank" soon :-)

Best Regards
User avatar
Fresh Boarder

GK User
Fri Jan 28, 2011 10:54 pm
I'm looking for the same modification. How do we go about positioning the logo image (from the template) in the home button's location? Typically, with modern web site the logo is href'ed to the home page so it's unnecessary to have a home button.

Thanks,
Tiinker (just recently purchased membership)
User avatar
Fresh Boarder

GK User
Sat Jan 29, 2011 3:49 am
a home button could be user friendly anyway. but anyhow, to do this you need to edit some of the layout and the CSS.

The layout of the top part is found in layouts/blocks/nav.php at the bottom you'll find the following code:

Code: Select all
<?php if($this->getParam('logo_type', 'image') == 'image') : ?>
<h1 id="gkLogo">
   <a href="./">
   <img src="<?php echo $logo_image; ?>" alt="<?php echo $this->getPageName(); ?>" />
   </a>
</h1>
<?php elseif($this->getParam('logo_type', 'image') == 'text') : ?>
<h1 id="gkLogo" class="text">
   <a href="./">
      <?php if($this->getParam('logo_text', '') != '') : ?><span class="gkLogoText"><?php echo $this->getParam('logo_text', ''); ?></span><?php endif; ?>
      <?php if($this->getParam('logo_slogan', '') != '') : ?><span class="gkLogoSlogan"><?php echo $this->getParam('logo_slogan', ''); ?></span><?php endif; ?>
   </a>
</h1>
<?php endif; ?>


Cut this, and paste it where you'd like it to be (above the menu div, in the menu div, etc). Of course, you'll need to do some css editing as well to make this look good. That's all to be found in the template.css.
User avatar
Fresh Boarder


cron