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

Hiding Attachment Container

Discussion in 'Styling and Customization Questions' started by Divvens, Jan 20, 2012.

  1. Divvens

    Divvens Well-Known Member

    Is it possible to hide the attachment container on a post? As in when someone attaches an image and does not add it into the post (either full or thumbnail) there is a bloc shown with "Attached files", I want to hide that attached files box from all members :p
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can add this to EXTRA.css:
    Code:
    .attachedFiles {
    display: none;
    }
    However, all attachments use that class, including non-images.
    So you will also prevent those from displaying.
     
    CapnLuffy likes this.
  3. Divvens

    Divvens Well-Known Member

    Thanks Brogan!
    We don't use attachments for other files so that's fine ^^ Thanks again.
     
  4. DRE

    DRE Well-Known Member

    How to do this if they are a guest? but let it show to other members?
     
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    Surround it via a conditional.
     
  6. AndyB

    AndyB Well-Known Member

    Curious why you would like to do that.
     
  7. DRE

    DRE Well-Known Member

    He probably doesn't like the way it looks.
     
  8. DRE

    DRE Well-Known Member

  9. Divvens

    Divvens Well-Known Member

    I used to just use attachments for XenPorta slider block, but recently I've removed xenporta so other attachments also show and I've removed this css bit
     
  10. russoroni

    russoroni Active Member

    Is there way to hide specific kinds of files? For example, I might want to hide images but I want to show pdf's.
     

Share This Page