CSS For New Module Position above Main Menu

GK User
Thu Aug 09, 2012 9:32 pm
Hello,

I have created a new module position following the Gavick Documentation Guidelines but have been stuck figuring out which CSS settings would work best to get it to stay in the position I need.

I would like the new top_banner module position to float directly on the right side of the logo. It's a 600 px grey rectangle right now to see where the module is appearing.

Site URL: http://www.saveurhomelrs.com

Looking forward to your help!

Thank you,

Carlos
User avatar
Senior Boarder

Konrad M
Fri Aug 10, 2012 9:12 am
Hi,
firts of all you need add this module not at the top of the page but inside of #gkPageTop div. So you need to edit lyouts/blocks/nav.php and paste your code under:
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; ?>

and you have to add float:right for your module.
User avatar

GK User
Fri Aug 10, 2012 3:25 pm
Thank you!
User avatar
Senior Boarder


cron