Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

When clicking the logo

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Bonjour,

Why when you click on the logo (and I think this is true on every templates), to go back to the home page, you get this link :
www.mysite.com/index.php instead of just www.mysite.com ?

My concern is to avoid duplicate contents ...

Thank you for your help

Guy
  • Guy Chiaramella's Avatar
  • Guy Chiaramella
  • 12 Month basic
  • 68 posts
  • Karma: 1
The administrator has disabled public write access.
Hi Guy,

We have reworked this in all templates since Novemeber and when the others get ported they will have the ability to change or add your own link.

So in the meantime you will need to edit the template/[your template name]/index.php and change the /index.php link to /. If you post the theme you are using I can take a look at teh exact line.

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony,

I am a bit lost.

1) First, shame on me, I forgot the ability you offer in your recent templates to set the logo hyperlink in the admin panel.

I know this is the case with pixeleight .

2) Nevertheless, I have tried to edit templates/pixeleight/index.php, writing this, line 22 :

$logoLink = $this->params->get("logoLink", "/");

but, doing this, I did not manage to get the link I wanted (ie just the root).

3) Then, I decided to test a good old template of yours, Organica.

But, misery, without doing anything, I got a non index.php link when clicking the logo !

What template should I use to test (and understand) the edition of the templates/[template]/index.php ?


Thanks Guy

PS Désolé pour mon mauvais anglais, j'ai beaucoup de difficultés pour m'expliquer clairement.
  • Guy Chiaramella's Avatar
  • Guy Chiaramella
  • 12 Month basic
  • 68 posts
  • Karma: 1
The administrator has disabled public write access.
Hey Guy,

Which template did you want to do this for?

Organica uses this code for the logo link. It can be found in the index.php file.
<a href="<?php echo $this->baseurl ?>/"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.png" alt="logo" /></a>

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers