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

XF 1.2 Delete box userinfo/avatar in certain forums

Discussion in 'Styling and Customization Questions' started by HenrikHansen, Oct 4, 2013.

  1. HenrikHansen

    HenrikHansen Well-Known Member

    Can anyone guide to how I (for certain nodes) can delete in 1. post only the user info box to the left so the text expands to full width?

    deleteuseravatar.png
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Add to EXTRA.css:
    Code:
    .node32 .messageUserInfo {
    display: none;
    }
    
    .node32 .message .messageInfo {
    margin-left: 0;
    }
    Change the 32 to the node ID.
    Repeat for any other nodes as required.
     
  3. HenrikHansen

    HenrikHansen Well-Known Member

    Thanks a lot. And for 1. post only?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Oh, I missed that.
    Try this:
    Code:
    .node32 .messageList li:first-child .messageUserInfo {
    display: none;
    }
    
    .node32 .messageList li:first-child.message .messageInfo {
    margin-left: 0;
    }
    I'm not sure how that will work in all browsers so to be safe, the only way to be sure would be to edit the template and use a conditional statement with modified HTML.
     
    HenrikHansen likes this.
  5. HenrikHansen

    HenrikHansen Well-Known Member

    Thanks a lot. That is the best thing about XenForo, the fast and very professionel support.
     

Share This Page