Avatar plugin help with multsite

Hi,

I use Avatar plugin. But I don’t want to show this field during sign up page. Also I want to have only user avatar not blog avatar, how do I remove this option sitewide?

  • Sajid
    • DEV MAN’s Sidekick

    Hi CatMan! Hope you are doing good today and thanks for your question :slight_smile:

    But I don’t want to show this field during sign up page.

    There is no settings in backend to hide this field from signup page. As long as its not a required field you can simply hide it by using below CSS code. Add this code in style.css file of your child theme or use simple custom css plugin. https://wordpress.org/plugins/simple-custom-css/

    #user-avatar-wrap{
    display:none;
    }

    Also I want to have only user avatar not blog avatar, how do I remove this option sitewide?

    To remove this from sitewide add below code in functions.php file of your file or use mu-plugin

    function wpmu_remove_menus(){
    remove_menu_page( 'blog-avatar' );
    }
    add_action( 'admin_menu', 'wpmu_remove_menus', 100 );

    Hope this helps :slight_smile:

    Cheers, Sajid

  • CatMan
    • The Incredible Code Injector

    Hi,

    The first code worked. But the second one didn’t. Still site avatar is shown site wide despite the code in mu-plugins. I pasted the code as below,

    <?php

    function wpmu_remove_menus(){

    remove_menu_page( ‘blog-avatar’ );

    }

    add_action( ‘admin_menu’, ‘wpmu_remove_menus’, 100 );

    Saved as file-name.php. Any advice?

  • Sajid
    • DEV MAN’s Sidekick

    Hi @CatMan! Hope you are doing good today and welcome back :slight_smile:

    Try below code (tested) instead to remove the menu.

    function wpmu_remove_menus(){

    remove_submenu_page( 'options-general.php' , 'blog-avatar' );

    }
    add_action( 'admin_menu', 'wpmu_remove_menus', 100 );

    Take care and have a nice weekend :slight_smile:

    Cheers, Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.