Osclass forums

Support forums => Themes => Topic started by: Aficionado on September 11, 2017, 03:15:35 am

Title: Adding Telephone plugin with OsclassWizards theme
Post by: Aficionado on September 11, 2017, 03:15:35 am
Hi.

While i'm able to add the php line anywhere i want in the item post file for the user to fill their phone, the formating is bad. I have tried to fix it with no luck.

The code is:

Code: [Select]
<?php if(function_exists('osc_set_telephone_number')){ osc_set_telephone_number();} ?>
and the result is in the capture.

Any help in formating this ?

Thanks
Title: Re: Adding Telephone plugin with OsclassWizards theme
Post by: Liath on September 11, 2017, 03:22:58 am
if i'm right, you are using theme osclasswizards where bootstrap is implemented, so you can try to add a class to the outer div


change in ../telephone/index.php ~39
Code: [Select]
<div class="box control-group">
    <div class="row">
        <label for="telephone"><?php _e('Phone''telephone'); ?></label>
        <div class="controls">
            <input id="telephone" type="text" value="<?php echo $detail?>" name="telephone"></input>
        </div>
    </div>
</div>


to
Code: [Select]
<div class="col-xs-12 box control-group">
    <div class="row">
        <label for="telephone"><?php _e('Phone''telephone'); ?></label>
        <div class="controls">
            <input id="telephone" type="text" value="<?php echo $detail?>" name="telephone"></input>
        </div>
    </div>
</div>
Title: Re: Adding Telephone plugin with OsclassWizards theme
Post by: Aficionado on September 11, 2017, 03:36:56 am
Thanks Liath, works very nice.

 ;D