Osclass Support Forums
Osclass theme support => Sigma Osclass Theme => Topic started by: Gimenez70 on January 24, 2021, 04:39:40 AM
-
(https://i.ibb.co/LZqk5wJ/item.jpg)
Security PREREQUISITES
( You are warned that you must know something about php to modify these files )
* copy these 3 files to xxxold.php
( so we have the duplicates of these files to restore them before any error )
oc-admin / themes / omega / items / frm.php
oc-content / themes / sigma / user-profile.php
oc-content / themes / sigma / item-sidebar.php
those files should be read like this
oc-admin / themes / omega / items / frmold.php
oc-content / themes / sigma / user-profileold.php
oc-content / themes / sigma / item-sidebarold.php
1.MODIFYING "other contact" for "whatsapp" in THE OMEGA THEME oc-admin
enter this file
oc-admin / themes / omega / items / frm.php
Look for
<div class="input-has-placeholder input-separate-top">
<label><?php _e('Other Contact'); ?></label>
<?php ItemForm::contact_other_text(); ?>
</div>
modify by this
<div class="input-has-placeholder input-separate-top">
<label><?php _e('Whatsapp'); ?></label>
<?php ItemForm::contact_other_text(); ?>
</div>
2. IN THE user-profile.php
enter this file
oc-content / themes / sigma / user-profile.php
Look for
<div class="control-group">
<label class="control-label" for="phoneLand"><?php _e('Phone', 'sigma'); ?></label>
<div class="controls">
modify by this
<div class="control-group">
<label class="control-label" for="phoneLand"><?php _e('Whatsapp', 'sigma'); ?></label>
<div class="controls">
3.IN THE item-sidebar.php
enter this file
oc-content / themes / sigma / item-sidebar.php
Look for
<?php if ( osc_item_contact_other() != '' ) { ?>
<p class="other bld"><span><?php _e('Other', 'sigma'); ?>:</span> <?php echo osc_item_contact_other(); ?></p>
<?php } ?>
Modify by this
<?php if ( osc_item_contact_other() != '' ) { ?>
<p class="other bld"><span><?php _e('Whatsapp', 'sigma'); ?>:</span> <a class="other bld" title="Whatsapp" target="_blank" href="https://wa.me/<?php echo osc_item_contact_other(); ?>"><i class="fa fa-whatsapp"></i></a></p>
<?php } ?>
* You remember that if you update the SIGMA theme these modifications will be deleted.
(https://i.ibb.co/qjmCNS4/editad.png)
(https://i.ibb.co/Bg8dKRn/po22.jpg)
-
@Gimenez70
Thanks for nice guide, just one comment to changing strings.
This is not required to do in theme/core files, simply update translation to have i.e. "Whatsapp" instead of "Other contact", even English to English will work nicely.
-
@Gimenez70
Thanks for nice guide, just one comment to changing strings.
This is not required to do in theme/core files, simply update translation to have i.e. "Whatsapp" instead of "Other contact", even English to English will work nicely.
Thank You MB .. 8)