Accedi
Inizia

Documentazione di Easy Digital Downloads

Documentazione, Materiali di Riferimento e Tutorial per Easy Digital Downloads 

FAQ del Pacchetto Widget

Il Pacchetto Widget EDD può essere acquistato qui.

Una volta installata e attivata, questa estensione ti fornirà 8 nuovi widget personalizzati di Easy Digital Downloads. Puoi visualizzare i nuovi widget navigando su Aspetto → Widget nella tua Bacheca WordPress.

I nuovi widget sono:

  • Top Vendite
  • Download Correlati
  • Più Recenti (Download)
  • Download in Evidenza
  • Download Casuale
  • Più Commentati (Download)
  • Archivio Download
  • Calendario Download

Se hai bisogno di aiuto nell'uso o nel lavoro con le aree Widget, puoi leggere di più in questo tutorial.

FAQ

1. Perché il Widget Download Più Commentati non funziona?

Questo widget funziona se i commenti sono stati abilitati per il tipo di post download. Per abilitare i commenti, usa il seguente codice:

// 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. Come imposto una dimensione fissa per l'immagine in miniatura del widget?

Il pacchetto Widget EDD ti consente di impostare una dimensione fissa per le miniature dal codice, per garantire che il widget abbia un bell'aspetto sul tuo tema. Per farlo, usa i seguenti filtri:

// 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' );
Questo articolo è stato utile?

Inizia a vendere oggi!

Unisciti a oltre 50.000 proprietari di negozi intelligenti e inizia a usare il modo più semplice per vendere prodotti digitali con WordPress.

Copyright © 2025 Sandhills Development, LLC

[universally_switcher]