Adding new module next to logo

GK User
Mon Aug 12, 2013 12:44 pm
Hello,
I am trying to add a new module for a banner (to the right of the logo).

I have been reading the instructions here: https://www.gavick.com/documentation/jo ... -position/

However, when it comes to the Last very important step, the code in default.php is quite different to the code that I have in my version of the file. (I'm using Joomla 3.1.5)

Could someone offer some advice please?

Many thanks. :)
User avatar
Senior Boarder

GK User
Mon Aug 12, 2013 3:28 pm
You need to find similar - each template is a little bit different so the documentation needs to be universal.
This element generates the logo:
Code: Select all
 <?php $this->loadBlock('logo'); ?>

You need to decide where to place new module, as it will require additional css'ing.
User avatar
Moderator

GK User
Tue Aug 13, 2013 3:39 pm
Thanks for that.

Slight problem though...

If I do this (code below) the banner is in the correct place (with float:right;), but in firefox it isn't clickable. It is clickable with IE.

Code: Select all
<?php if($this->modules('mytop')) : ?> <div class="mytop">
<jdoc:include type="modules" name="mytop" style="<?php echo $this->module_styles['mytop']; ?>" />
</div>
<?php endif; ?>
   
<?php $this->loadBlock('logo'); ?>



Any ideas on what I should do?
User avatar
Senior Boarder

GK User
Wed Aug 14, 2013 4:46 pm
Could You please post an url to your site?
User avatar
Moderator

GK User
Wed Aug 14, 2013 7:29 pm
PM sent - many thanks for your help. :)
User avatar
Senior Boarder

GK User
Sat Aug 17, 2013 10:56 am
It z-index issue, but with floats fixing it requires a little different approach:
Code: Select all
#gkLogoWrap {
width: 210px;
min-height: 80px;
}

in override.css wil help :).
User avatar
Moderator

GK User
Sun Aug 18, 2013 12:18 pm
That's great!
So I'm guessing the width:210px; 'forces' the element to have a width that it didn't have before?

Thanks very much Cyberek. I appreciate the help. :)
User avatar
Senior Boarder

GK User
Mon Aug 19, 2013 7:14 pm
Exactly, the element was 100% width and was floated and rendered over the banner so it was not clickable in normal browsers (ie usually acts strangely).
User avatar
Moderator


cron