1. flipinjc
  2. Free Templates / Extensions
  3. Monday, 26 March 2012
  4.  Subscribe via email
Hello Admins,

I am wondering if there is a specific code in FTP where I can remove the ability of a logo to auto hiperlink. I have two websites inside the same host and it is not a good thing for me to have one site reflect to the other via the logos. I was looking for it earlier but could not find a solution.

Please let me know how to go about disabling this template feature.
Thanks!
Accepted Answer Pending Moderation
0
Votes
Undo
Hi

In the templates index.php (../templates/j51_[YourTemplate]/index.php you will find the following code which defines the logo..

		<div class="logo_container">		
<?php if($this->params->get('logoType') == 'image') : ?>
<h1 class="logo"> <a href="/index.php" title="<?php echo $siteName; ?>"><span>
<?php echo $siteName; ?>
</span></a> </h1>
<?php else : ?>

<h1 class="logo-text"> <a href="/index.php" title="<?php echo $this->params->get('siteName'); ?>"><span>
<?php echo $this->params->get('logoText'); ?>
</span></a> </h1>
<p class="site-slogan"><?php echo $this->params->get('sloganText'); ?></p>
<?php endif; ?>
</div>


Within this code you will see 2 instances of the following which adds the hyperlink, the first for an image based logo, the second for a text based logo..

<a href="/index.php" title="<?php echo $this->params->get('siteName'); ?>">


You can either edit the link to your own taste or remove the <a ...></a> tags completely which would have this code looking link the following..

		<div class="logo_container">		
<?php if($this->params->get('logoType') == 'image') : ?>
<h1 class="logo"> <span>
<?php echo $siteName; ?>
</span> </h1>
<?php else : ?>

<h1 class="logo-text"> <span>
<?php echo $this->params->get('logoText'); ?>
</span> </h1>
<p class="site-slogan"><?php echo $this->params->get('sloganText'); ?></p>
<?php endif; ?>
</div>


Hope this helps

CiarĂ¡n
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Fantastic! Once the site is done I will post it under the other blog post for you guys to check it out!
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok