Improve SEO: Change logo link from "/index.php" to "/"

Elegant Joomla template designed especially for both professional and personal website presentation.
GK User
Sun Jun 12, 2011 9:26 pm
Hi,

After reading the following tip:

http://blog.joomlaworks.gr/why-you-shou ... -in-your-s

I've modified this template to change the logo link from "/index.php" to "/" by editing:

/templates/gk_postnote/layouts/blocks/mainnav.php

Line 4: <a href="index.php"...
to: <a href="/"...

and line 8: <h1><a href="index.php"...
to: <h1><a href="/"...

I haven't checked whether has been implemented in other templates or not as well.

I hope this tip helps Gavick and others.

Kind regards,
Dave.
User avatar
Senior Boarder

GK User
Mon Mar 12, 2012 11:11 pm
Hi,

Thank you dajvid for sharing this tip.

It helped me a lot.

Depending on your template, the location and name of the file to edit could be different.

For instance, for AppSite template, you need to go to
/templates/gk_appsite/layouts/blocks/logo.php

Here is that you to modify. Change ./ into your desired location.
For instance :
Code: Select all
<?php if ($this->getParam('logo_type', 'image')!=='none'): ?>
     <?php if($this->getParam('logo_type', 'image') == 'css') : ?>
     <h1 id="gkLogo">
          <a href="http://www.yoursite.com" class="cssLogo"></a>
     </h1>
     <?php elseif($this->getParam('logo_type', 'image')=='text') : ?>
     <h1 class="gkLogo text">
         <a href="http://www.yoursite.com">
              <span><?php echo $this->getParam('logo_text', ''); ?></span>
              <small class="gkLogoSlogan"><?php echo $this->getParam('logo_slogan', ''); ?></small>
         </a>
     </h1>
    <?php elseif($this->getParam('logo_type', 'image')=='image') : ?>
    <h1 id="gkLogo">
          <a href="http://www.yoursite.com">
          <img src="<?php echo $logo_image; ?>" alt="<?php echo $this->getPageName(); ?>" />
          </a>
     </h1>
     <?php endif; ?>
<?php endif; ?>


I hope this will give additional info to the tip given by dajvid.


Kind regards
User avatar
Junior Boarder


cron