This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

epoolroy

  • ****
  • 121 posts
How disable Input Box on User profile
« on: April 13, 2018, 08:29:27 AM »
Hai, how can i remove/disable input box on user profile?
thank

*

MB Themes

Re: How disable Input Box on User profile
« Reply #1 on: April 13, 2018, 12:28:21 PM »
@epoolroy
Open user-profile.php and remove input for name.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

epoolroy

  • ****
  • 121 posts
Re: How disable Input Box on User profile
« Reply #2 on: April 14, 2018, 03:41:08 AM »
@epoolroy
Open user-profile.php and remove input for name.

Which one i need to remove? i just want the remove box not a name like email section...
 
Code: [Select]
<div class="row">
              <label for="s_name"><span><?php _e('Name''stela'); ?></span><span class="req">*</span></label>
              <div class="input-box"><?php UserForm::name_text(osc_user()); ?></div>
            </div>

Marked as best answer by frosticek on May 17, 2018, 08:17:15 AM
*

epoolroy

  • ****
  • 121 posts
Re: How disable Input Box on User profile
« Reply #3 on: May 17, 2018, 04:54:34 AM »
Hai, how can i remove/disable input box on user profile?
thank

I already solve this problem with this code...

First i go
Code: [Select]
oc-content/themes/stela/user-profile.php
Then i find this code at bottom of file above this line:
Code: [Select]
<?php osc_current_web_theme_path('footer.php') ; ?>
And i place following code
Code: [Select]
<script>
  $("#s_name").attr('disabled','disabled');
  $("#s_website").attr('disabled','disabled');
  $("#s_phone_mobile").attr('disabled','disabled');
</script>

Thank you