[CUSTOM] Logo on top and extra right side module

GK User
Fri Feb 11, 2011 7:10 pm
Hi

One Member with Developer Subscription ask us support to make a small change on Penguimmail template, to have the logo on top of main menu and also with extra module position on its right side (for banner use, for example).

We decide to share with other Members also. So if you want to use this layout change, follow this instructions:

Step 1:
Open ../layouts/blocks/nav.php and find this line:
Code: Select all
<div id="gk-nav" class="clearfix">

Before this line, add this code:
Code: Select all
<div id="top-wrapper">
<?php if ($this->getParam('logoType')=='image'): ?>

<h1 class="logo">
      <a href="index.php" title="<?php echo $this->sitename(); ?>"><span><?php echo $this->sitename(); ?></span></a>
</h1>
<?php elseif($this->getParam('logoType')=='text') : ?>
<div class="logo text">
      <h1>
            <a href="index.php" title="<?php echo $this->sitename(); ?>"><span><?php echo GK_LOGO; ?></span></a>
      </h1>
      <p class="site-slogan"><?php echo GK_SLOGAN;?></p>
</div>
<?php endif; ?>
<?php if($this->countModules('top_mod')) : ?>
<div id="top_mod_wrapper" class="normal clearfix clear">
      <jdoc:include type="modules" name="top_mod" style="gavickpro" />
</div>
<?php endif; ?>
</div>


Step 2:
Open ../layouts/blocks/header.php and remove this lines:
Code: Select all
<?php if ($this->getParam('logoType')=='image'): ?>

<h1 class="logo">
      <a href="index.php" title="<?php echo $this->sitename(); ?>"><span><?php echo $this->sitename(); ?></span></a>
</h1>
<?php elseif($this->getParam('logoType')=='text') : ?>
<div class="logo text">
      <h1>
            <a href="index.php" title="<?php echo $this->sitename(); ?>"><span><?php echo GK_LOGO; ?></span></a>
      </h1>
      <p class="site-slogan"><?php echo GK_SLOGAN;?></p>
</div>
<?php endif; ?>


Step 3:
Open templateDetails.xml file and find this line:
Code: Select all
<!-- template specific positions -->

After this line, add this one:
Code: Select all
<position>top_mod</position>


Step 4:
Go to template parameters and enable override.css file.

Step 5:
Open override.css file from css directory and add this code:
Code: Select all
#top-wrapper {height: 100px;width: 100%;overflow: hidden}
#top-wrapper  h1.logo {position: absolute;margin-top: 15px;}
#top_mod_wrapper {float: right;width: 650px;margin: 10px 0;overflow: hidden;}
#top_mod_wrapper .moduletable {float: right;padding: 0 10px;margin-top:-5px}
#top_mod_wrapper .moduletable_content div{border: none;}
#gk-nav,#gk-subnav {-moz-border-radius: 6px!important;-webkit-border-radius: 6px!important;border-radius: 6px!important;}


That's it.
If the new module position "top_mod" is populated, for example with a banner, it should look like this:

custom-penguimmail.png


Enjoy ;)
User avatar
Platinum Boarder

GK User
Fri Feb 11, 2011 8:23 pm
beautiful dude !
User avatar
Platinum Boarder

GK User
Sun Mar 06, 2011 4:24 pm
I have tried to populate top_mod position with text, banners, images etc, but nothing shows up there, it's real frustrating..

Any ideas?

Thanks.
User avatar
Junior Boarder

GK User
Mon Mar 07, 2011 1:25 am
Please show us your website.
It might be useful if you also send me admin access.
User avatar
Platinum Boarder

GK User
Mon Mar 07, 2011 1:52 am
Yes, ...

www.it-culture.com.au

I will send you an email with temp admin access.

Thank you.
User avatar
Junior Boarder

GK User
Mon Mar 07, 2011 7:37 pm
@Seichinha

email sent to you yesterday to paulo[at]gavick[dot]com

Thanks.
User avatar
Junior Boarder

GK User
Thu Mar 10, 2011 4:51 pm
I really need a solution to my issue noted in original post.

What do I need to do to get an answer?

Thanks.
User avatar
Junior Boarder

GK User
Wed Apr 27, 2011 11:19 pm
I have a minor problem in Chrome. It seems after I implemented this (which looks great thanks!) It overlaps the banner1 position that houses the gavick tabs manager module on home page.

you can see by going here: http://blakemiller.co/mysmartplans

any fix for this? thanks
User avatar
Fresh Boarder

GK User
Fri May 20, 2011 9:58 am
Is it possible to do the same in Joomla 1.6.3, if possible please send link
User avatar
Fresh Boarder

GK User
Sat May 28, 2011 5:12 pm
I am having a problem (see image). How do i rectify that?
User avatar
Fresh Boarder

teitbite
Sun Jun 05, 2011 8:58 am
Hi

Can I please see Your site ?
User avatar
Moderator

GK User
Sat Jun 11, 2011 5:44 am
Hi Teitbite,

Mailed you some days back with the details. Haven't heard back from you.
User avatar
Fresh Boarder

teitbite
Tue Jun 14, 2011 8:09 pm
Hi

Please mail me one more time. I've just get back from vacations so everything is a little bit messy in my mailbox.
User avatar
Moderator

GK User
Wed Jun 15, 2011 7:11 am
Mailed you again.
User avatar
Fresh Boarder

teitbite
Wed Jun 15, 2011 8:20 pm
Hi

Please try to add this code to css:

Code: Select all
.tabHeader {
    margin: 0;
}


If You wan to remove this bar completly please use also code:

Code: Select all
#gk-nav {
    display: none;
}
User avatar
Moderator

GK User
Wed Jun 15, 2011 8:34 pm
Worked. Thanks Teitbite.
User avatar
Fresh Boarder

teitbite
Wed Jun 15, 2011 8:51 pm
Hi

No problem. Glad I could help :)
User avatar
Moderator

GK User
Thu Jun 16, 2011 5:46 am
Hello,
I have problem with template for joomla 1.6.3.
I don't see gk-nav in "nav.php" :/
User avatar
Fresh Boarder

teitbite
Sat Jun 18, 2011 11:37 am
Hi

In 1.6 the layers got different names. What template are You talking about ?
User avatar
Moderator

GK User
Mon Aug 01, 2011 1:15 pm
Hi, i ask you a question, if i want to put a php module between the logo and the menu, what should i do?
the module have to be width 100%. i have already installed a php module, but in what position?
i tried with "top_mod" but i didn't see it.
User avatar
Expert Boarder

teitbite
Mon Aug 01, 2011 7:29 pm
Hi

You need to add this new position there first. Please take a look on first post of this thread and use the code for adding posiotion just before:
Code: Select all
<div id="gk-nav" class="clearfix">
User avatar
Moderator

GK User
Tue Aug 02, 2011 6:41 am
ok, now it works. I understand what was wrong in my code.

thank you.
User avatar
Expert Boarder

teitbite
Tue Aug 02, 2011 5:26 pm
Hi

No problem. Glad I could help.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.