Home › Forum › Plugin e temi di WP › Problemi personalizzazione tema dopo aggiornamento a 4.5
-
AutorePost
-
-
21 Aprile 2016 alle 19:56 #30806LucantropoPartecipante
Buona sera, sono relativamente nuovo del forum, chiedo cortesemente un aiuto.
Ho realizzato il mio prima tema wordpress per la versione 4.2 senza particolari problemi, lo uso su un mio sito.
Aggiornando alla 4.5 non riesco più a personalizzare le varie opzioni che avevo assegnato al tema, colelgamenti social, footer e via discorrendo.
Da quel che ho capito è cambiato qualche cosa nella nuova versione che non fa più visualizzare queste opzioni, anche se il sito è correntemente funzionante.
Ho utilizzato la funzione wp_customize creando una serie di sezioni (add_section) ognuna delle quali ha un setting specifico (add_setting) e un campo di controllo (add_control)
Non so bene dove devo intervenire per aggiornare il tema, chiedo quindi il vostro cortese aiuto.
Grazie in anticipo
-
22 Aprile 2016 alle 6:54 #120396TittiModeratore
Noi possiamo fornire supporto solo su temi del repository di WordPress, vale a dire temi approvati e gratuitamente scaricabili dal sito ufficiale.
Per i temi commerciali e/o custom-made, devi rivolgerti al venditore o all’autore – se l’hai fatto te, solo tu lo conosci e lo puoi correggere, e la tua domanda è troppo teorica, non specifica.
Se non sei in grado il consiglio è di rivolgerti ad un professionista del settore, o usare uno delle migliaia di temi già pronti, aggiornati e compatibili.
PS: Spostato in Temi e Plugin
-
22 Aprile 2016 alle 11:24 #120399LucantropoPartecipante
Grazie per la risposta, non volevo indicazioni precise, ma solo un indicazione sul nuovo metodo di visualizzazione della personalizzazione in tempo reale implementato in wordpress 4.5.
Alla fine credo che sia da integrare del codice nel file function ma non sono stato capace di capire e/o trovare riferimenti.
La speranza era che chi fosse pià aggiornato di me riguardo questa nuova opzione potesse per lo meno indicarmi della letteratura in merito.
-
22 Aprile 2016 alle 12:01 #120400LucantropoPartecipante
Ho trovato la soluzione e la posto dovesse servire per qualcun altro.
Premetto che è valida per il mio tema e quindi va testata.
Ho sostutito : $wp_customize->add_section con $wp_customize->selective_refresh->add_partial .
In questo modo la personalizzazione delle opzioni del tema è ripartita e si vede anche l’anteprima.
-
22 Aprile 2016 alle 12:01 #120401
-
22 Aprile 2016 alle 12:37 #120402evan91Partecipante
Ho trovato la soluzione e la posto dovesse servire per qualcun altro.
Premetto che è valida per il mio tema e quindi va testata.
Ho sostutito : $wp_customize->add_section con $wp_customize->selective_refresh->add_partial .
In questo modo la personalizzazione delle opzioni del tema è ripartita e si vede anche l’anteprima.
Ciao,
perdona l’inesperienza, ma potresti gentilmente scrivere tutti i passaggi per arrivare a questa modifica? Ho il tuo stesso problema e non so come risolvere. Ti ringrazio.
-
22 Aprile 2016 alle 21:53 #120404LucantropoPartecipante
Ciao,
perdona l’inesperienza, ma potresti gentilmente scrivere tutti i passaggi per arrivare a questa modifica? Ho il tuo stesso problema e non so come risolvere. Ti ringrazio.
Nel mio tema avevo predisposto una sezione per gestire da backend una serie di opzioni, collegamenti social, google analitycs, etc etc.
Per creare la sezione che si visualizzava con “personalizza” usavo la funzione: $wp_customize->add_section, con l’aggiornamento alla 4.5 ho dovuto sostituire con $wp_customize->selective_refresh->add_partial perchè è stato implementato il selective refresh.
Per me è bastata questa operazione e ha funzionato, spero che possa essere di aiuto anche a te.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.