WordPress's user profile page includes a wide variety of field options for saving various user information, such as:
You can use CSS to hide specific fields on the user profile page if you want to keep it simple. This tutorial will show you how to use CSS to hide specific user profile fields.
To hide user profile fields in WordPress, follow these steps:
On the Theme Editor , select the Theme you want to edit from the dropdown:
The files for this selected theme are listed on the right column under Theme Files. Click on the file named “functions.php”:
This example removes the “Website” field from the user-profile page:
To hide it with CSS. Add the code (below) to your functions.php file and click Update File Button to save the changes:
function remove_website_row_wpse_94963_css() echo '<style>tr.user-url-wrap{ display: none; }</style>'; } add_action( 'admin_head-user-edit.php', 'remove_website_row_wpse_94963_css' ); add_action( 'admin_head-profile.php', 'remove_website_row_wpse_94963_css' );
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.