The user page doesn't look good. I want to edit it, but (If I am right) that is a default page. I am not able to find where to edit it.
How can I edit the user page?
The page at http://example.com/user has two purposes:
In the first case, there isn't anything that you can edit to change how the login form is rendered. What you can do is implementing
hook_form_user_login_alter() in the theme you are using, or in a module, to alter how the login form is rendered. In this case, you can use the #prefix and #suffix properties to inject CSS classes to the form fields, and #attached to load a new CSS file containing the CSS styles you need.
The alternative is associating a theme function to render the login form, through #theme.
In the second case, with the exception of the template file used to render the page, there isn't any file you can edit to change how the user profile page appear. Editing the user-profile.tpl.php template file used by the currently used theme is the easier, and faster way to change how the user profile page appears.
The alternatives are:
hook_entity_view() to add items to the user profile page
hook_entity_view_alter() to alter what the user profile page shows
See also the other given answer; if you just need to change the order in which the fields associated with a user account are rendered, or slightly changing how those fields are rendered, that is the answer for you.
To configure how fields should be displayed when rendering a user profile page, navigate to:
Home » Administration » Configuration » People » Account settings
and click on the
Manage Display tab.
This lets you rearrange the order fields are presented on the user profile page, and to hide certain fields, but not very much more.
To make more profound changes, you need to change the templates that determine the look of the user profile page. This is a too broad subject to cover here. Read up on Drupal templates (
.tpl.php files), and ask specific questions here if you get stuck.
The most important of these is the
user-profile.tpl.php. However, the Drupal template system is extremly flexible (and somewhat daunting), and allows you to create overrides at all levels, so there are not only a template for the full page, but also templates for the fields that appear in it, etc.