Hi is it possible to include the listing phone number in the listing page header they section in image say under Cardiff Glamorgan.
Reason is its a long way to scroll to phone number on mobiles in current position
Hi,
You must edit this file: (add the code startin on line 59 after the ) /public_html/components/com_jbusinessdirectory/views/companies/tmpl/default_style_5.php
The code for contacts is:
company->email) && $appSettings->show_email){?>
company->email?>
package->features) && in_array(PHONE, $this->package->features) || !$appSettings->enable_packages)) { ?>
company->phone)) { ?>
company->mobile)) { ?>
company->fax)) {?>
company->fax?>
But in this moment i use this:
<!-- Business Contacts Responsive -->
<span class="hidden-md hidden-lg hidden-xl"><?php if($showData && (isset($this->package->features) && in_array(PHONE, $this->package->features) || !$appSettings->enable_packages )) { ?>
<?php if(!empty($this->company->phone)) { ?>
<span class="phone" itemprop="telephone">
<i class="dir-icon-phone"></i> <a href="tel:<?php echo $this->company->phone; ?>"><?php echo $this->company->phone; ?></a>
</span>
<br/>
<?php } ?>
<?php if(!empty($this->company->mobile)) { ?>
<span class="phone" itemprop="telephone">
<i class="dir-icon-mobile-phone"></i> <a href="tel:<?php echo $this->company->mobile; ?>"><?php echo $this->company->mobile; ?></a>
</span>
<br/>
<?php } ?>
<?php if(!empty($this->company->fax)) {?>
<span class="faxNumber">
<i class="dir-icon-fax"></i> <?php echo $this->company->fax?>
</span>
<br/>
<?php } ?>
<?php } ?>
</span>
<span class="hidden-xs hidden-sm"><?php if($showData && (isset($this->package->features) && in_array(PHONE, $this->package->features) || !$appSettings->enable_packages )) { ?>
<?php if(!empty($this->company->phone)) { ?>
<span class="phone" itemprop="telephone">
<i class="dir-icon-phone"></i> <a href="tel:<?php echo $this->company->phone; ?>"><?php echo $this->company->phone; ?></a>
</span>
<?php } ?>
<?php if(!empty($this->company->mobile)) { ?>
<span class="phone" itemprop="telephone">
<i class="dir-icon-mobile-phone"></i> <a href="tel:<?php echo $this->company->mobile; ?>"><?php echo $this->company->mobile; ?></a>
</span>
<?php } ?>
<?php if(!empty($this->company->fax)) {?>
<span class="faxNumber">
<i class="dir-icon-fax"></i> <?php echo $this->company->fax?>
</span>
<br/>
<?php } ?>
<?php } ?></span>
This is not an official answer.
Hi Thanks for that
Just to make sure I am in the right place my file loaded in to Dreamweaver is giving the following lines
58 $categories = explode('#',$this->company->categories);
59 foreach($categories as $i=>$category){
60 $category = explode("|", $category);
Are these lines correct sometimes it puts blank lines in in Dreamweaver so just checking
By the way your site looks great.
Hi,
Thank you for the appreciation.
After the last close div you can start the code for contact
<?php
$categories = explode('#',$this->company->categories);
foreach($categories as $i=>$category){
$category = explode("|", $category);
?>
<a rel="nofollow" href="<?php echo JBusinessUtil::getCategoryLink($category[0], $category[2]) ?>"><?php echo $category[1]?></a><?php echo $i<(count($categories)-1)? ', ':'' ?>
<?php
}
?>
<?php } ?>
</div>
Hi Slim
That worked great
Thanks
Hi,
With pleasure