move logo position

April 2013 Joomla Templates
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
Fri Mar 21, 2014 2:53 am
Reply with quote
Report this post
Hi,
How can I move the logo to the left of the main menu at the top of the site?
I want to have it where the left side of the main menu starts.
Please see the attached image for demo.
Thanks!
User avatar
Senior Boarder

GK User
Fri Mar 21, 2014 5:07 pm
Reply with quote
Report this post
Hello,

You have to open file layouts/default.php file and move the following fragment:

Code: Select all
<?php $this->layout->loadBlock('logo'); ?>


to:

Code: Select all
   <div id="gkMenuWrapper">
      <div class="gkPage">
         <?php if($this->API->get('show_menu', 1)) : ?>
         <div id="gkMainMenu" class="gkPage">
            <?php
                    $this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu'));
                     $this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
                 ?>
         </div>
         <?php endif; ?>


so in result you should get the following code:
Code: Select all
   <div id="gkMenuWrapper">
      <div class="gkPage">
                        <?php $this->layout->loadBlock('logo'); ?>

         <?php if($this->API->get('show_menu', 1)) : ?>
         <div id="gkMainMenu" class="gkPage">
            <?php
                    $this->mainmenu->loadMenu($this->API->get('menu_name','mainmenu'));
                     $this->mainmenu->genMenu($this->API->get('startlevel', 0), $this->API->get('endlevel',-1));
                 ?>
         </div>
         <?php endif; ?>
User avatar
Administrator

GK User
Fri Mar 21, 2014 7:54 pm
Reply with quote
Report this post
I did that and it worked but I also the logo twice.
It is in the new position and the old position.
(see the image below)
Thanks!
User avatar
Senior Boarder

GK User
Sat Mar 22, 2014 1:59 am
Reply with quote
Report this post
I've asked you to move not copy the mentioned fragment:

Code: Select all
<?php $this->layout->loadBlock('logo'); ?>
User avatar
Administrator

GK User
Sat Mar 22, 2014 4:10 am
Reply with quote
Report this post
thanks!
User avatar
Senior Boarder


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