VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

email & phone nr clickable
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: email & phone nr clickable

email & phone nr clickable 01 Dec 2016 08:56 #9758

Hi,

How can I make the email and phone number in the top header clickable?

Thanks

  • Posts:15
  • shoki
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: email & phone nr clickable 06 Dec 2016 03:12 #9777

You can edit template file index.php, add link to the email and phone number (at line 142-146).

joomfreak

  • Posts:2784
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: email & phone nr clickable 08 Dec 2016 02:19 #9783

Hi,

Can you please edit the code below to made the phone number clickable:

<?php if($this->params->get('phone') != ' ')>
<span class="top-phone">
<i class="fa fa-phone-square"></i><?php echo $this->params->get('phone'); ?>
</span>
<?php endif; ?>

thanks in advance

  • Posts:15
  • shoki
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: email & phone nr clickable 08 Dec 2016 02:58 #9784

You can use the code:
 
<?php if($this->params->get('phone') != ' ') :?>
<span class="top-phone"><i class="fa fa-phone"></i><a href="tel:<?php echo $this->params->get('phone'); ?>"><?php echo $this->params->get('phone'); ?></a></span>
<?php endif; ?>
 


joomfreak

  • Posts:2784
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.96 seconds
Tuesday 20 August 2019

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.