Change Cart-Login-Register position

GK User
Fri May 11, 2012 9:41 pm
Hi, is there a way these 3 positions moved where the submenu position is? Or can an other module position have this pop up function???
Thank you for your time
User avatar
Expert Boarder

GK User
Sat May 12, 2012 12:25 am
Hi,

The file you need is: \templates\gk_esport\layouts\default.php

Find this code, which generates those positions:
Code: Select all
<?php if(((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) || $this->modules('pagetop + cart')) : ?>
          <div id="gkPageTopFeatures" class="clearfix gkWrap">
             <?php if($this->modules('pagetop')) : ?>
             <div id="gkPageTopMod">
                <jdoc:include type="modules" name="pagetop" style="<?php echo $this->module_styles['pagetop']; ?>" />
             </div>
             <?php endif; ?>
             
             <?php if(((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) || $this->modules('cart')) : ?>
             <div id="gkPageTopLinks">
                <?php if($this->modules('cart')) : ?>
                <a href="#" id="btnCart"><?php echo JText::_('TPL_GK_LANG_MY_CART'); ?><span><?php echo JText::_('TPL_GK_LANG_MY_CART_LOADING'); ?></span></a>
                <?php endif; ?>
                
                <?php if(GK_LOGIN) : ?>
                <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=login" id="btnLogin"><?php echo $btn_login_text; ?></a>
                <?php endif; ?>
                
                <?php if(GK_REGISTER) : ?>
                <a href="<?php echo $this->URLbase(); ?>index.php?option=com_users&amp;view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
                <?php endif; ?>
             </div>
             <?php endif; ?>
          </div>
          <?php endif; ?>

Move it before:
Code: Select all
 <?php if($this->modules('banner2')) : ?>

Then let me know if it helps.

Cheers,
User avatar
Platinum Boarder

GK User
Sat May 12, 2012 1:41 pm
Yes, that worked perfect.But is it possible to be moved right next to submenu position? I mean between the submenu and the search position.This would be ideal
Thank you very much
User avatar
Expert Boarder

GK User
Sat May 12, 2012 3:24 pm
You will need some css changes to achieve that, so please give me your site link then I will check to give you the code.

Cheers,
User avatar
Platinum Boarder

GK User
Sun May 13, 2012 11:08 am
User avatar
Expert Boarder

GK User
Mon May 14, 2012 8:21 am
Hi,

I don't think you have the place wide enough to do that, please check http://easycaptures.com/fs/uploaded/535/8180308283.jpg
User avatar
Platinum Boarder

GK User
Mon May 14, 2012 4:50 pm
Now the width of the template is 950px, how long should i extend it?
User avatar
Expert Boarder

GK User
Mon May 14, 2012 4:57 pm
It's difficult to say now. If possible please send me a PM to provide with backend and FTP access info then I will customize it for you, that would be faster.

Cheers,
User avatar
Platinum Boarder

GK User
Mon May 14, 2012 5:58 pm
Did you receive my message?
User avatar
Expert Boarder

GK User
Tue May 15, 2012 9:47 am
Yes, I have just checked and got it. I will try to help you asap.

Thanks,
User avatar
Platinum Boarder

GK User
Tue May 15, 2012 9:50 am
Thank you for your time
User avatar
Expert Boarder

GK User
Tue May 15, 2012 10:02 am
Hi,

I moved the code to another place in that file, check to see :) and added this code to CSS Override:
Code: Select all
#gkSubmenuMod{
float:left!important;
width: auto!important;
margin-left:335px;
}
#gkMainMenu > div.gk-menu > ul{
margin-right:50px;
}

Check if it's alright now.

Cheers,
User avatar
Platinum Boarder

GK User
Tue May 15, 2012 10:11 am
Yes its perfect, but if i remove the main menu shouldent the submenu position and login-register-cart , move on top right next to the logo?Is there a top padding ?
User avatar
Expert Boarder

GK User
Tue May 15, 2012 10:45 am
Actually you can't remove the main menu as it's a built-in block of the template.
User avatar
Platinum Boarder

GK User
Tue May 15, 2012 10:56 am
I removed it from the template options, the block cant be removed?
But its ok ,thank you very much man,you are the best.Thank you for your help
User avatar
Expert Boarder

GK User
Tue May 15, 2012 11:21 am
Sorry I forgot about that option :) The fix was actually a customization to be applied for that only one case, it means that it's not flexible and dynamic for every case of every site, you know, so if you change anything in that layout, you must notice to change values in the code as well.

Cheers,
User avatar
Platinum Boarder

GK User
Tue May 15, 2012 11:24 am
I just added to the submenu css, margin-top: -40px ; and it works fine.
So thank you very much for your help and your time.You are the best
User avatar
Expert Boarder

GK User
Tue May 15, 2012 11:45 am
I'm very glad to know that. Thank you very much for your kind words, you are most welcome here :)

Feel free to let me know if you need any other helps.

Have a nice day,
User avatar
Platinum Boarder


cron