Visualizzazione 1 filone di risposte
Visualizzazione 1 filone di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Plugin e temi di WP › Id Autoptimize-plugin
Buona sera!
Volevo impedire il caricamento di Autoptimize ad una singola pagina web. Ho trovato il codice da inserire nel file function.php del mio tema (procedimento già testato in locale con un altro plug). Devo trovare l’id del plug, solitamente contenuto nel file nome-plugin.php. Solitamente gli id degli script e dei file css si trovano dopo la stringa enqueue_script o enqueue_style.
L’amico in questione,ottimo per ottimizzare il codice, ma allergico (almeno nel mio caso a Download manager), non contiene tali dati in autoptimize.php.
Se qualcuno lo conosce, sa dirmi dove trovarli? Io ne ho già scoperti un paio nel file /classes/config.php, ma non sonosufficienti ad impedirne il caricamento su http://www.calcioitaliastory.it/servizi/downloads .
Per farla ancora più semplice, i plug in hanno un id generale inserendo il quale blocco totalmente il caricamento dei loro script e css, senza cercarli tutti?
Grazie.
Perché hai scritto in grassetto? Controlla i tuoi scritti prima di pubblicarli per rispetto a chi legge.
Quello che tu chiami id si chiama handle. (E quello che chiami plug si chiama plugin).
Nel web trovi diversi modi per sapere gli handles degli script e degli stili.
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0