Plugin Author
Ninos
(@ninos-ego)
Can you maybe explain which profile pages you mean, have no clue :/
Thread Starter
c32v
(@c32v)
Plugin Author
Ninos
(@ninos-ego)
I don’t think that’s easy to implement, because of the stylesheets and not existing hooks..
Also it’s better to write a own page in frontend, as a kind solution like that 🙂
Thread Starter
c32v
(@c32v)
I found a solution.
1. In wp-admin/user-edit.php:
– replace “include( ABSPATH . ‘wp-admin/admin-header.php’);” with “include( ABSPATH . ‘wp-content/themes/mytheme/header.php’);”
– replace “include( ABSPATH . ‘wp-admin/admin-footer.php’);” with “include( ABSPATH . ‘wp-content/themes/mytheme/footer.php’);”
(I don’t know how can I call this from functions.php. Please help me Ninos!)
2. In functions.php add this for remove toolbar:
“if (!function_exists(‘disableAdminBar’)) {
function disableAdminBar(){
remove_action( ‘admin_footer’, ‘wp_admin_bar_render’, 1000 );
remove_action( ‘wp_footer’, ‘wp_admin_bar_render’, 1000 );
function remove_admin_bar_style_backend() {
echo ‘<style>body.admin-bar #wpcontent, body.admin-bar #adminmenu { padding-top: 0px !important; }</style>’;}
add_filter(‘admin_head’,’remove_admin_bar_style_backend’);
function remove_admin_bar_style_frontend() {
echo ‘<style type=”text/css” media=”screen”>
html { margin-top: 0px !important; }
* html body { margin-top: 0px !important; }
</style>’;}
add_filter(‘wp_head’,’remove_admin_bar_style_frontend’, 99);}}
add_action(‘init’,’disableAdminBar’);”
I hope it’s OK.
Plugin Author
Ninos
(@ninos-ego)
maybe you can use this hook:
do_action('in_admin_header');
or this hook
do_action('admin_head');
for the footer use this hook
do_action('admin_footer', '');
But I think for a custom admin panel you have to change the default files, otherwise you have got the admin menu and admin styles.. It will be look very bad.
Have a look on buddypress, maybe you can deactivate the activity stream, member list, forum etc. and use just the profile page.. Otherwise it’s simpler to create a own page maybe using shortcodes..