Risposte nei forum create
-
AutorePost
-
TittiModeratore
Devi farlo presente all’autore del plugin download monitor, indicando la versione di PHP.
Per nascondere il warning puoi provare con l’aggiunta di
/** Debugging WP */
define(‘WP_DEBUG’, false);
nel file wp-config.php
TittiModeratoreDevi aggiungere i codici non nei file di WP, ma in uno o più file di template del tema, dove quei tag sono contenuti tipo, ad esempio, header.php, al punto indicato. Quali file dipende dal tema. Prima dovrai però creare un child-theme e fare lଠle modifiche, altrimenti le perderesti a ogni aggiornamento del tema.
TittiModeratoreEventualmente l’unica cosa che potrai o dovrai fare, se ti rendi conto che l’aggiornamento ha portato importanti cambiamenti in certi file del tema padre che GIA’ stai usando nel tema figlio, controllare se è il caso di aggiornare anche lo stesso file modificato nel tema figlio. Ma è un’operazione che si fa o per un’occorrenza di cui si è certi perché lo si è letto nel changelog o altro, oppure molto saltuariamente se si ritiene che ce ne sia bisogno.
TittiModeratoreàˆ proprio cosଠche funziona il tema figlio, mediante copiatura dal tema padre del file che si intende modificare e, una volta modificato, inserendolo nel tema figlio; tale file sarà chiamato al posto di quello nel padre.
Il tema padre non dovrai toccarlo mai e quindi non ci sarà bisogno di controllare niente, solo aggiornarlo da bacheca quando ci saranno aggiornamenti.
TittiModeratoreFai l’aggiornamento manuale (ovviamente carica l’ultima versione, non la precedente).
https://codex.wordpress.org/it:Aggiornare_WordPress#Aggiornamento_manuale
TittiModeratoreNotepad++ per editare il codice
*Per il resto devi leggere le semplici istruzioni date dall’autore del plugin al link che ti ho già dato sopra*
“wp-content/themes/<YOUR THEME NAME>/index.php” non significa che devi necessariamente mettere il codice nell’index.php del tuo tema. àˆ semplicemente l’indicazione della directory in cui trovare il file o i file in cui inserire il codice.
index.php è un file di template generico che si attiva in mancanza di richieste specifiche, poi se invece nel tuo tema fa la funzione di home mancando ad esempio un home.php e tu vuoi mostrare quel dato in home, allora sଠma questo dipende dal tema e da ciò che vuoi tu e che solo tu puoi sapere.
Vale a dire che il codice lo devi inserire nel file o nei file corrispondente/i alle pagine in cui tu vuoi che appaia ciò per cui hai installato il plugin (vedi 2.), dopo il loop (3.), nella posizione dove vuoi che si veda il conteggio (4.).
TittiModeratoreNella media gallery ci sono già strumenti di selezione per data.
Se ciò non ti bastasse, dovrai cercare un plugin che faccia ciò che chiedi, o farti fare uno script apposito.
TittiModeratoreDevi seguire le istruzioni del plugin.
Dato che devi modificare un file del tema in uso, si suppone che tu abbia già creato un child-theme, altrimenti a ogni aggiornamento del tema perderai questa e le altre modifiche eventualmente effettuate.
Inoltre le modifiche non si effettuano dall’editor di WordPress, ma si agisce via FTP, previa copia del file che si intende modificare. Se nel tuo child-theme non hai ancora quel file, lo crei come da istruzioni del Codex per il child-theme.
In alternativa, come scritto al punto 5, puoi usare uno shortcode direttamente nell’editor dell’articolo.
TittiModeratoreTittiModeratoreTab “impostazioni schermata”
-
AutorePost