1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Removing Avatar from Member Card Pop-up

Discussion in 'Styling and Customization Questions' started by CiaranT, Dec 29, 2014.

  1. CiaranT

    CiaranT Member

    I have figured out how to remove the avatar from most pages except the member card page.

    What lines of code do I need to need to take out of the member card template in order to remove the avatar?

    Thanks.
     
  2. Amaury

    Amaury Well-Known Member

    Try this:

    Code:
    .avatar img {
        display: none;
    }
    Then adjust the contents of the member card to fill in the space accordingly:

    Code:
    .xenOverlay.memberCard .userInfo {
        margin-left: 0;
    }
     
    CiaranT likes this.
  3. CiaranT

    CiaranT Member

    Thanks.

    I added the above 2 sets of code to the member_card.css template. It did not work.

    Do I also need to remove some code at the same time?
     
  4. Amaury

    Amaury Well-Known Member

    Revert your changes and add the CSS I gave you to EXTRA.css.
     
  5. CiaranT

    CiaranT Member

    That did not work unfortunately. The avatar still appears.

    Any other ideas? Thanks.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Code:
    .xenOverlay.memberCard .avatarCropper
    {
        display: none;
    }
    
    .xenOverlay.memberCard .userInfo
    {
        margin-left: 0 !important;
    }
     
    CiaranT and Amaury like this.
  7. CiaranT

    CiaranT Member

    That worked. Thanks Brogan.
     

Share This Page