Main Nav Location

Premium, Furniture Joomla Design Shop Template with K2Store support
GK User
Thu Nov 07, 2013 7:34 pm
I'd like to put my main navigation, below the picture on http://www.atlantainspector.com. When I just change the location of the module to banner2, it does something funky...
User avatar
Gold Boarder

GK User
Fri Nov 08, 2013 7:59 am
You need to change gkBanner1 module position above gkMainNav by editing templates/gk_black_and_white/layouts/default.php
User avatar
Moderator

GK User
Fri Nov 08, 2013 9:35 pm
Thank you Cyberek! I don't see the module positions in the php...

<?php
/**
*
* Default view
*
* @version 1.0.0
* @package Gavern Framework
* @copyright Copyright (C) 2010 - 2011 GavickPro. All rights reserved.
*
*/
// No direct access.
defined('_JEXEC') or die;
if($this->getParam("cwidth_position", 'head') == 'head') {
$this->generateColumnsWidth();
}
$this->addCSSRule('.gkWrap { width: ' . $this->getParam('template_width','980px') . '!important; }');
$tpl_page_suffix = '';
if($this->page_suffix != '') {
$tpl_page_suffix = ' class="'.$this->page_suffix.'"';
}
$tpl_name = str_replace(' ', '_', JText::_('TPL_GK_LANG_NAME'));
$user = JFactory::getUser();
// getting User ID
$userID = $user->get('id');
// getting params
$option = JRequest::getCmd('option', '');
$view = JRequest::getCmd('view', '');
// defines if register is active
define('GK_REGISTER', ($this->modules('register') ? $userID == 0 : false));
// defines if login is active
define('GK_LOGIN', $this->modules('login'));
// defines if com_users
define('GK_COM_USERS', $option == 'com_users' && ($view == 'login' || $view == 'registration'));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://ogp.me/ns/fb#"
xml:lang="<?php echo $this->API->language; ?>" lang="<?php echo $this->API->language; ?>">
<head>
<?php if($this->getParam("chrome_frame_support", '0') == '1') : ?>
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<?php endif; ?>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<jdoc:include type="head" />
<?php $this->loadBlock('head'); ?>
<?php $this->loadBlock('cookielaw'); ?>
</head>
<body<?php echo $tpl_page_suffix; ?>>
<div class="bg">
<!--[if IE 6]>
<div id="gkInfobar"><a href="http://browsehappy.com"><?php echo JText::_('TPL_GK_LANG_IE6_BAR'); ?></a></div>
<![endif]-->
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>
<div id="gkPopup">
<div>
<div class="gkWrap gkPopupWrap">
<?php if(GK_LOGIN): ?>
<?php $this->loadBlock('tools/login'); ?>
<?php endif; ?>
<?php if(GK_REGISTER): ?>
<?php $this->loadBlock('tools/register'); ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>



<?php $this->messages('message-position-1'); ?>

<div id="gkPageTop" class="gkMain gkWrap clear<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?> marginTop<?php endif; ?>">
<?php if(isset($_COOKIE['gkGavernMobile'.$tpl_name]) && $_COOKIE['gkGavernMobile'.$tpl_name] == 'desktop') : ?>
<div class="mobileSwitch gkWrap">
<a href="javascript:setCookie('gkGavernMobile<?php echo $tpl_name; ?>', 'mobile', 365);window.location.reload();"><?php echo JText::_('TPL_GK_LANG_SWITCH_TO_MOBILE'); ?></a>
</div>
<?php endif; ?>

<?php $this->loadBlock('logo'); ?>
</div>




<div id="wrapperContent" class="gkWrap">
<div id="wrapperContent2">

<?php $this->loadBlock('nav'); ?>

<?php $this->messages('message-position-2'); ?>

<?php $this->loadBlock('header'); ?>

<?php $this->loadBlock('top'); ?>

<?php $this->loadBlock('main'); ?>

<?php $this->loadBlock('user'); ?>

</div>



</div>
</div>

<div id="bottomWrap" class="gkWrap">
<div>
<?php $this->loadBlock('bottom'); ?>
</div>
</div>

<div id="footerWrap" class="gkWrap">
<?php $this->loadBlock('footer'); ?>
</div>

<?php $this->loadBlock('social'); ?>

<jdoc:include type="modules" name="debug" />
</body>
</html>
User avatar
Gold Boarder

GK User
Mon Nov 11, 2013 6:04 pm
Code: Select all
<div id="wrapperContent" class="gkWrap">
            <div id="wrapperContent2">   
           
            <?php $this->loadBlock('header'); ?>

            <?php $this->loadBlock('nav'); ?>
           
          <?php $this->messages('message-position-2'); ?>
      
          
          
          <?php $this->loadBlock('top'); ?>
          
          <?php $this->loadBlock('main'); ?>
          
          <?php $this->loadBlock('user'); ?>
      
            </div>
        </div>

User avatar
Moderator

GK User
Mon Nov 11, 2013 6:05 pm
Just move loadBlock('header') before loadBlock('nav')
User avatar
Moderator

GK User
Wed Nov 13, 2013 9:32 pm
Thanks! How do I get rid of that blue line that appears at the top of the page? And narrow the white space between the top of page and top nav?
User avatar
Gold Boarder

GK User
Thu Nov 14, 2013 7:45 pm
Could You please post an url to your site?
User avatar
Moderator

GK User
Fri Nov 15, 2013 8:17 pm
Hey Cybereak,
Thanks, it's http://www.atlantainspector.com

I got the line off the site... But I'm trying to reduce the top of the page margin. Where is that in the CSS? I'd like the top nav to be at the top of the page.

Also, I've found how to just make the background white, but how do I change that 1px border around the main body to 0? I like it around the components, but the one big one is redundant.

Thank you!
User avatar
Gold Boarder

GK User
Mon Nov 18, 2013 5:02 pm
Could you please create screenshots and mark - which space would you like to remove, and which borders.
User avatar
Moderator


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