Skip to main content
MindTouch Success Center

Hide the Attachments section of an article (TCS)

This page applies to:MindTouch TCS


This tutorial walk you through the process of hiding the attachments section of an individual article or for all articles in your MindTouch site. As a side note, a single MindTouch site can store up to 5,000 attachments.


After completing this tutorial you will have the ability to embed CSS into a MindTouch article, add CSS to your entire MindTouch Help Center and show or hide the Attachments section as desired. 

Basic intro to CSS

CSS stands for Cascading Style Sheets and is used to modify the look & feel of HTML.  CSS is most commonly used to change things like colors and fonts but it can be used to drastically change the layout of a site.  The examples we provide are focused more on simple CSS modifications.

CSS is written by combining a Selector with one or many Styles.  The Selector is simply a way to pick with HTML element(s) you want to style.  The Styles convey how you want the Selected element(s) to look.  Take a look at the following example:

H1 {

In this example the H1 (Heading) is being selected and the styles are telling the H1 to be red with 27px font size.  You can also Select elements by Class or ID to focus your styles as needed.  To learn more about CSS please checkout a full tutorial

Embedding CSS into an article

In order to embed CSS into an article you will need to use the following steps

  1. Go to the article that you want to add CSS to (In this case, the article you want to hide the attachments on)
  2. Make sure the editor is loaded, if it isn't click Edit page
  3. Go to the bottom of the page.  If the cursor only shows up in the DekiScript, CSS or JavaScript block just push Shift Enter to escape it. 
  4. In the editor click the Insert menu
  5. Select CSS

  1. Once you have created the CSS block you will need to paste the following CSS into it
div.attachments {
  1. Click Save and check to see if the attachments section is hidden

Adding CSS to all articles

You can add the exact same CSS to all articles in MindTouch through the Control Panel.  In order to access the Control Panel you will need to be an administrator for you MindTouch Help Center.  If you are an administrator you will see the Control Panel link under the Tools menu.  Click the Control Panel link and use the following instructions:

  1. In the left navigation of the Control Panel click Custom Site CSS
  2. Past the following CSS into the textarea titled All Roles CSS
div.attachments {
  1. Click Save Changes
  2. Check to see if the attachments section has been hidden on all pages
    • You may need to do a Hard Refresh to load your new CSS.  In most browsers this can be accomplished by pushing Ctrl and F5 at the same time. 

Hiding the Attachments section for Anonymous users

In the previous step of the tutorial you hid the Attachments for all users in MindTouch.  This includes Anonymous (not logged in) users, Author and Administrators.  However, you may have only wanted to hide the Attachments for a select group of users.  

For instance, you may want your authors to see and use the Attachments section when they are editing documentation but your anonymous users to only focus on the document and not see the Attachments section.  Use the following steps to hide the Attachments for Anonymous users. 

  1. Go to the Control Panel (Tools > Control Panel)
  2. In the left navigation of the Control Panel click Custom Site CSS
  3. Past the following CSS into the textarea titled Anonymous CSS (The one under All Role CSS)
div.attachments {
  1. Click Save Changes
  2. Log out of your site and check to see if the attachments section has been hidden on all pages for anonymous users
    • You may need to do a Hard Refresh to load your new CSS.  In most browsers this can be accomplished by pushing Ctrl and F5 at the same time. 

You will also notice in the Custom Site CSS section that there are textareas for Community Member CSS, Pro Member CSS and Admin CSS.  You can select which user role your CSS will impact by using these inputs.

  • Was this article helpful?