Insert a New Position Over the top menu

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Oct 09, 2016 4:23 pm
Reply with quote
Report this post
Hi team, I need to include a new position over the top menu, just like bannertop.

I try doing it following a previous post, but I can't find the file mentioned on that post (layout/blocks/default.php) I just don't have one.

Can you help me to add a new position over the men?

Thanks,
User avatar
Junior Boarder

teitbite
Mon Oct 10, 2016 2:01 pm
Reply with quote
Report this post
Hi

This file is /layout/default.php

Here You will find an instruction how to add it: https://www.gavick.com/documentation/jo ... e-position
User avatar
Moderator

GK User
Tue Oct 25, 2016 4:36 am
Reply with quote
Report this post
I try to do it, and it's not showing the position en the administrator.

I insert the position on templateDetails.xml, as shown in the post (my position name is "topbanner")

In my website there is no gk.const.php file so I omited that step.

I modify the default.php, to include the "topbanner" position just after the body tag.

But I can't see it on my site, can you take a look on what I missed?

Thanks.
User avatar
Junior Boarder

teitbite
Fri Oct 28, 2016 9:50 am
Reply with quote
Report this post
Hi

Of course, but I will need joomla panel access, url and ftp access to check everything. You can send it to my private mail [email protected] or via PM on forum.
User avatar
Moderator

GK User
Tue Nov 01, 2016 3:07 am
Reply with quote
Report this post
I went again over this, and find that I was editing the wrong templareDetails.xml file, so I made the changes in the right one (inside the template folder) and get the position inserted. But it's not on the desired position, as you can see on the image:

Captura de pantalla 2016-10-31 21.48.54.png


I insert the tag just below the <body> tag but think that this behavior is being caused by css.

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


I want the banner over the the red menu bar, wide centered and with 10px margin top and bottom.

This can be done using override.css??
User avatar
Junior Boarder

GK User
Tue Nov 01, 2016 3:13 am
Reply with quote
Report this post
I want it look something like this:
Captura de pantalla 2.png
User avatar
Junior Boarder

teitbite
Wed Nov 02, 2016 7:06 pm
Reply with quote
Report this post
Hi

That requires some CSS changes. Please tell me the url to Your site and I'll tell You what code to add where.
User avatar
Moderator

GK User
Thu Nov 03, 2016 10:09 pm
Reply with quote
Report this post
User avatar
Junior Boarder

GK User
Sun Nov 06, 2016 3:06 pm
Reply with quote
Report this post
teitbite wrote:Hi

That requires some CSS changes. Please tell me the url to Your site and I'll tell You what code to add where.


http://www.hoyamerica.com
User avatar
Junior Boarder

teitbite
Fri Nov 11, 2016 10:50 am
Reply with quote
Report this post
Hi

Please add this code to override.css and make sure override is enabled in template settings.

Code: Select all
body {
    padding: 0;
}

#gkPageTop {
    position: relative;
    top: 0 !important;
}
User avatar
Moderator

GK User
Sun Nov 13, 2016 4:44 am
Reply with quote
Report this post
Thanks!!! works like a charm!!
User avatar
Junior Boarder

teitbite
Fri Nov 18, 2016 10:37 am
Reply with quote
Report this post
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron