How to Remove City/Town and Country in participants list

How to Remove City/Town and Country in participants list

by duong thuan -
Number of replies: 1

All our users are in one town/country, so these fields are just distracting. How can they be removed from user lists?


Average of ratings: -
In reply to duong thuan

Re: How to Remove City/Town and Country in participants list

by John Provasnik -
Picture of Particularly helpful Moodlers Picture of Testers

If you want to "prevent" users from editing the City field, navigate to Site administration - Plugins - Authentication - Manual accounts and you can switch the City field to "Locked."

To remove a user's ability to "see" the field when they are "editing" their profile, you'll need to put this into your site's Additional HTML field:

div#fitem_id_city {display: none;}

and/or div#fitem_id_country {display: none;}

but, when viewing the profile page (when not in editing mode) these fields are still visible (I'm not sure how to hide them from the non-editing profile page).