How change the display admin profil ?
-
Hello
Could someone tell me the code to write in functions.php to remove this display in the profil user, please?
I’d like to delete what I surrounds, for my registered users.
Excuse me for my english language.
Mod
If you know the page ID, you can probably hide that using CSS, rather than PHP. Link?
Hello, thank you for your replie !
I found the class table-form (with firebug, Mozilla firefox), but if I delete it, it deletes all the options on the admin user.
How can I do?
Thank you for your help
Best regards
Alain
Mod
Use Firebug or View Source to determine the page’s unique ID (it’s in the
<body>
tag). Then use something like this in your css:#page-id .table-form {
display: none;
}Hello Kenneth, thank you for your replie!
This code does not work.
With Firebug, it write form-table (not .table-form).
I do not find the page-id
Here is the code :
<h3>Information de Profil d'utilisateur spécifique de Graphene</h3>
<p>Les paramètres définis ici seront utilisés uniquement dans le thème Graphene.</p>
<table class="form-table">
<tbody><tr>
<th>
<label for="author_imgurl">URL de l'image du profil pour l'auteur</label><br>
<small>Vous pouvez spécifier l'image affichée comme image de profil de l'auteur dans la page auteur. S'il n'y a pas d'URL définie ici, le <a href="http://www.gravatar.com">Gravatar</a> de l'auteur sera utilisé.</small>
</th>
<td>
<input type="text" name="author_imgurl" id="author_imgurl" value="" size="50"><br>
<span class="description">Entrez l'URL complète (incluant <code>http://</code>) pour l'image de votre profil svp.<br> <strong>Important : </strong> L'image doit être inférieure ou égale à <strong>150 pixels</strong>.</span>
</td>
</tr>
</tbody></table>Mod
Quote:With Firebug, it write form-table (not .table-form).Then use:
#page-id .form-table {
display: none;
}Quote:I do not find the page-idCan you provide a link to the page, then? Your site is a real pain in the neck to navigate and those pop-ads are annoying. I just don’t have the time to deal with that.
Yes, thank you very much!
http://www.modelisme-racer.fr/wp-admin/
Identifiant :
password :
Excuse me but, It is not me who put the popup … Weird here, I do not
Mod
I didn’t realize that was on the user profile page. In that case, CSS probably won’t help. You might want to try this plugin, instead:
http://wordpress.org/extend/plugins/adminimize/
For security reasons, I’ve deleted the username and password from your previous post.
Yes, thank you very much Kenneth!
I know “Adminimize” an I use it.
But with this plugin, I do not access the user’s profile page in the admin.
I do not know how to solve my problem…
Admin
You will need to use a child theme to achieve this. If you already are, put this code in your child theme’s
functions.php
file:<?php
/**
* Remove the custom user field in WP Admin
*/
function graphene_remove_custom_user_field(){
remove_action( 'show_user_profile', 'graphene_show_custom_user_fields' );
remove_action( 'edit_user_profile', 'graphene_show_custom_user_fields' );
remove_action( 'personal_options_update', 'graphene_save_custom_user_fields' );
remove_action( 'edit_user_profile_update', 'graphene_save_custom_user_fields' );
}
add_action( 'admin_head', 'graphene_remove_custom_user_field' );
Viewing 10 posts - 1 through 10 (of 15 total)
- 1
- 2
- You must be logged in to reply to this topic.