Risposte nei forum create
-
AutorePost
-
TittiModeratore
Quei campi non sono aggiunti da Woocommerce, sono di default in WP.
PS: “front-end”
TittiModeratoreio non ho creato credo niente
Dici di non aver creato niente e poi subito dopo dici di aver fatto anche footer, comments, header e un template… non sono niente, sono file modificati da te, altrimenti che ci stanno a fare nel child – e perché ci chiedi se il functions può essere il problema? (che cmq se è cosଠcome dici non è) Basta che via FTP prima fai backup e poi elimini tutti i file del child tranne lo stile e vedi da te se quei file sono un problema! E basta che allo stesso tempo ricarichi via FTP il tema originale come già detto!
function downloadJSAtOnload() è comune e molto usata (consigliata da Google, ad es.) nell’header per deferire script, ad esempio proprio quello di G o Twitter.
Il problema è che l’URL dovrebbe essere:
element.src =”/wp-content/themes/psychologist/assets/js/bootstrap.js”;
Il che non mi stupisce se l’hai inserita tu prendendola dal web, ad esempio qui dopo aver cercato di risolvere le rilevazioni di Page Speed.
Poi dato che non ricordi le cose che fai, la lettura di questo tuo topic ti potrebbe illuminare sul fatto di come può non esser caricato o caricato più volte, date le modifiche nel tema padre e nel child (quelle o altre che noi non possiamo sapere) che hai fatto.
TittiModeratoreMi pareva ovvio che qui nel parlare di file spostati, minimizzati o altro, ci si riferiva ad un fatto non statico ma attuato dinamicamente, al volo.
A meno che tu non abbia corrotto in qualche modo i file del tema, e in questo caso ci dovresti arrivare anche tu che basta ricaricarli correttamente via FTP.
A parte questo, per tutto ciò che è inerente al tema commerciale devi rivolgerti al supporto del tema.
TittiModeratoreSe non ci sono indicazioni particolari, lo disinstalli normalmente da bacheca. Poi puoi sempre guardare se ha lasciato residui sul server (se non sai dove guardare paragoni con un backup precedente).
Per quanto riguarda Remove query strings è piuttosto semplice risolvere. Se nella tua installazione W3TC non riesce a risolverlo, dipende appunto dalla tua installazione, come già detto. Puoi infilare nel file functions del tuo child-theme questa funzione:
// Remove query string from static resources
function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );Altrimenti se non hai già functions nel tema child, non farlo altrimenti rischi di fare casini, ma installi questo semplicissimo plugin, costituito da un unico piccolo file con dentro più o meno la stessa funzione di cui sopra.
10 Marzo 2016 alle 11:11 in risposta a: Difficoltà creazione pagina con richiesta di login per utenti non loggati #120020TittiModeratoreSà¬, ma ti è stato detto due volte di disattivare Speed Booster, prima da @nick e poi da me – 6° e 7° post:
Disattiva e cancella (guarda le istruzioni per farlo correttamente) Speed Booster.
Come detto, W3TC è più che sufficiente, e funziona bene se hai almeno 128MB di memoria PHP. Se non lo sai configurare lo tieni configurato di default, e nel tempo testi ogni eventuale settaggio, controllando tutti i casi e non solo l’home page (se hai dei plugin che agiscono in altre pagine non controlli? Se hai un tema che carica dei CSS responsive non controlli?) e usando gli strumenti di sviluppo forniti da Firefox o Chrome, e al primo problema di caricamento script disattivi la minimizzazione automatica, solo js o solo CSS a seconda del problema, o tutte e due.
I plugin di cache e simili vanno sempre testati
Ripeto, gli script non si possono spostare/deferire/sfasare/minimizzare in massa senza controllare gli esiti ed è quasi automatico che in un sito come il tuo per il tipo di plugin e tema che utilizzi tu abbia dei problemi. W3TC sa gestire bene la minimizzazione anche con i file già minimizzati (quelli che hanno “min” nell’indirizzo), in altri invece può darsi che tu debba escluderli manualmente e certi plugin già fanno caricare i loro script al momento e al posto giusto, quindi nessuna soluzione di massa è affidabile senza prove.
L’altro giorno ho guardato a caso la pagina “curriculum” e avevi 14 errori. Vuoi un sito che si carichi presto e bene?
Semplifica, solo testo e immagini ottimizzate e avrai un sito che si carica presto e bene. Se invece vuoi slider, banner, box che si muovono, scritte che appaiono, tema e plugin che fanno questo e quello, bé allora devi imparare a ottimizzare e controllare ogni volta che impianti qualcosa di nuovo e sconosciuto come quegli script di cui dicevi in apertura o plugin fatti per gente che li sa mettere a punto.
TittiModeratoreNon devi mai modificare i file originali. Le modifiche le devi fare nel foglio stile del child-theme, o nello spazio Custom CSS se il tema lo prevede.
TittiModeratoreSe ci sono uno o più file che non devono essere spostati altrimenti non funzionano correttamente quello è l’unico modo da bacheca per far sapere al plugin che non deve spostarli, è stato messo apposta, poi se eventualmente non funziona (cioè se continua a spostarli) puoi solo rivolgerti all’autore.
Ma provare, no? Mica succede niente a passare dal tutti spostati al tutti spostati meno uno o meno tutti, semmai è il contrario.
I plugin di cache e simili vanno sempre testati.
TittiModeratoreE come credi possa funzionare con gli stessi riferimenti del sito live? Devi cambiare siteurl e home nella tabella wp-option e devi cambiare il wp-config. Segui una delle tante guide su come passare da un sito live ad uno locale, noi qui non facciamo supporto per installazioni locali.
TittiModeratoreSicuro di non essere su wordpress.com? Stento a credere che tu non sia mai andato nella sezione Plugin e che tu non sappia se hai plugin attivi. Comunque vacci e disattivali selezionandoli tutti e scegliendo l’azione di gruppo. Poi vai nella sezione Temi e attivi un tema di default della serie Twenty. Ovviamente non sono operazioni per risolvere, sono le prime normali prove di debug da fare e alla portata di tutti.
Da lଠvedi se il problema si presenta ancora, cosa che non dovrebbe. Procedi poi ad attivare uno ad uno i plugin e poi il tema controllando ogni volta fino ad individuare la fonte del problema.
-
AutorePost