1. Home
  2. Knowledge Base
  3. Document Library Pro
  4. FAQ

Can I add a full-width description under the document name and other data?

Most people who use the Document Library Pro plugin want to display each piece of data as a separate column. However, some people like to position the document description or excerpt/summary as a full-width column underneath the other information about each document.

This isn't a feature of the plugin as such, however you can achieve something similar by forcing the description or excerpt column to appear in a 'child row' of the table layout instead of having its own column, and setting the child row to always be visible. You can do this by combining the column_breakpoints and responsive_display options in the Document Library Pro shortcode.

When you do this, the description or summary appears full-width below the main row of data about each document:

Display child row in document library

Here's the shortcode that we used to create this document library. The 'summary' column is set to 'none' in the column breakpoints option, which means that it will appear in the child row on all devices and never in its own column:

[product_table columns="image,title,excerpt,doc_tags,file_size,file_type,link" responsive_display="child_row_visible" column_breakpoints="default,default,none,default,default,default,default"]

In your own shortcode, you will need to ensure that the column breakpoints option lists the correct number of columns. All the columns should be set to "default" apart from the column which you wish to display as full-width in the row below, which should be set to "none".

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.