How to add Telephone plugin on Rival

How to install Telephone plugins on Rival themes

  1. 1. Download plugin here http://market.osclass.org/plugins/attributes/telephone-plugin_507
  2. 2. Open and editing rival/ item-post.php
  3. add this code
 <?php osc_set_telephone_number(); ?>

after this code

<div class=”form-group”>
<label class=”control-label” for=”address”> <?php _e(“Address”, ‘rival’); ?> </label>
<div class=”controls”>  <?php ItemForm::address_text(osc_user()); ?>  </div>
</div>

save

3. Open and editing rival/ templates/ single/ single1.php , single3.php and single4.php

add this code
<?php osc_telephone_number(); ?>
before this code
<?php if ( osc_item_city() !=”” ) { ?>
<p class=”city”><strong> <?php _e(“City”, ‘rival’); ?>:</strong>
<?php echo osc_item_city(); ?> </p>
<?php } ?>

4. Open and editing rival/ templates/ single/ single2.php

add this code
<?php osc_telephone_number(); ?>
before this code
<?php if ( osc_user_phone_mobile() !=” ) { ?>
<button type=”button” class=”btn btn-default btn-lg btn-block”><strong> <p class=”phone”><?php _e(“Phone cell”, ‘rival’); ?>: <?php echo osc_user_phone_mobile(); ?></p></strong> </button>
<?php } ?>
Save and test post new ads on Listings post

 

Top