This topic has 1 reply, 1 voice, and was last updated 6 years by TheDream18.

  • Author
  • #195213
     TheDream18
    Participant

    Hi,

     

    I used this code in general-header.php. which help display avarta in frontend for logged in user.  Can you help me correct it?

     

        <?php

            global $current_user;

            if ( is_user_logged_in() ):

                wp_get_current_user();

                echo get_avatar( $current_user->ID, 28 );

            endif;

     

        ?>

     

    I want to remove “icon & profile” in header ==> Replace it with clickable avarta logged in user.

    2) In general-header.php i can’t find the “icon & profile location”, where is it, which number line of code?

     

    #195214
     TheDream18
    Participant

    Sorry. I fixed. Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?