How to display the short description on your downloads?

The short description is a handy way to provide additional context or details about your downloads.

By default, the short description is displayed only when you use the ‘Box‘ template in Download Monitor.
For other templates, this feature is hidden. However, with a quick customization, you can display the short description across any template you use.

To customize your template, you’ll need to override it. Check out our content template documentation for detailed instructions on how to override templates.

Once you have overridden your template, add the following snippet where you want the short description to appear:

$dlm_download->the_excerpt();  

This is how the code looks without the snippet:

<?php do_action( 'dlm_template_content_before_link', $dlm_download, $attributes, $template ); ?>

<a <?php echo DLM_Utils::generate_attributes( $attributes['link_attributes'] ); ?>>
    <?php $dlm_download->the_title(); ?>
</a>
<?php

This is how the download looks without the snippet:

This is how it should look after you add the snippet:

<?php do_action( 'dlm_template_content_before_link', $dlm_download, $attributes, $template ); ?>

<a <?php echo DLM_Utils::generate_attributes( $attributes['link_attributes'] ); ?>>
    <?php $dlm_download->the_title(); ?>
</a>

<?php $dlm_download->the_excerpt(); ?>
<?php

This is how it looks after the added snippet:

Displaying the short description on your downloads is a great way to provide more information and improve the user experience. With just a small tweak to your content template, you can make this feature work seamlessly with any template.

Was this article helpful?
0 Yes 0 No
Start Protecting your WordPress Downloads

Protect and track downloads on WordPress... What are you waiting for?