I came up with the locations. But the links to social media never reach me. I can’t put it away. Please respond as soon as you can.
Hi,
You can remove it by overriding the template plugins/classified-listing/templates/myaccount/form-edit-account.php
- Copy the template
- Paste in child theme directory under classified-listing/myaccount/ directory
- Then remove the fields which you don’t want
Thank you
No. You need to cut it from the file TemplateHooks.php the following code:
add_action( 'rtcl_edit_account_form', [ __CLASS__, 'edit_account_form_social_profile_field' ], 70 );
add_action( 'rtcl_edit_account_form', [ __CLASS__, 'edit_account_form_location_field' ], 50 );
if ( Functions::has_map() ) {
if ( 'geo' === Functions::location_type() ) {
remove_action( 'rtcl_edit_account_form', [ __CLASS__, 'edit_account_form_location_field' ], 50 );
add_action( 'rtcl_edit_account_form', [ __CLASS__, 'edit_account_form_geo_location' ], 50 );
}
add_action( 'rtcl_edit_account_form', [ __CLASS__, 'edit_account_map_field' ], 60 );
}
</div>
Then all these lines will be removed from the profile editing form
Hi,
Great. If you understand hooks, you can do it easily.
Thank you