Skip to main content
Easy Digital Downloads Documentation
Documentation, Reference Materials, and Tutorials for Easy Digital Downloads

Widgets Pack FAQ

The EDD Widgets Pack may be purchased here.

Once installed and activated, this extension will give you 8 new custom Easy Digital Downloads widgets. You can view the new widgets by navigating to Appearance → Widgets in your WordPress Dashboard.

The new widgets are:

  • Top Sellers
  • Related Downloads
  • Most Recent (Download)
  • Featured Download
  • Random Download
  • Most Commented (Download)
  • Downloads Archive
  • Downloads Calendar

If you need help using or working with Widget areas, you can read more in this tutorial.

FAQ

1. Why is the Most Commented Download Widget not working?

This widget works if comments have been enabled for the downloads post type. To enable comments, use the following code:

// Download Comment Supports
if ( ! function_exists( 'your_prefix_edd_download_supports' ) ) {
    function your_prefix_edd_download_supports( $supports ) {
        $supports[] = 'comments';
        return $supports;
    }
}
add_filter( 'edd_download_supports', 'your_prefix_edd_download_supports' );

2. How do I set a fixed size for the widget’s thumbnail image?

The EDD Widgets pack allows you to set a fixed thumbnail size from code, to ensure the widget will look good on your theme. To do so, use the filters below:

// Set EDD Widgets Pack default image size
if ( ! function_exists( 'your_prefix_edd_widgets_thumbnail_size' ) ) {
    function your_prefix_edd_widgets_thumbnail_size( $size ) {
        return array( '56', '56' );
    }
}
add_filter( 'edd_widgets_top_sellers_thumbnail_size', 'your_prefix_edd_widgets_thumbnail_size' );
add_filter( 'edd_widgets_most_recent_thumbnail_size', 'your_prefix_edd_widgets_thumbnail_size' );
add_filter( 'edd_widgets_most_commented_thumbnail_size', 'your_prefix_edd_widgets_thumbnail_size' );
add_filter( 'edd_widgets_related_downloads_thumbnail_size', 'your_prefix_edd_widgets_thumbnail_size' );
// Set EDD Widgets Pack default image size for widgets that show only one download
if ( ! function_exists( 'your_prefix_edd_widgets_single_thumbnail_size' ) ) {
    function your_prefix_edd_widgets_single_thumbnail_size( $size ) {
        return array( '155', '156' );
    }
}
add_filter( 'edd_widgets_random_download_thumbnail_size', 'your_prefix_edd_widgets_single_thumbnail_size' );
add_filter( 'edd_widgets_featured_download_thumbnail_size', 'your_prefix_edd_widgets_single_thumbnail_size' );