Risposte nei forum create
-
AutorePost
-
webmasterxxxPartecipante
Non ho capito niente
Ad esempio ora ho fatto una nuova pagina php copiando poi stesso da page.php ma togliendo tutte le cose che non mi servono ed ho lasciato solo il menu che mi va bene cosi sulla nuova pagina, l’unica cosa è che le voci del menu devono essere diverse da tutto il sito.
webmasterxxxPartecipanteMica tanto.
Editi un file di testo che poi chiami quello-che-vuoi.php, con all’inizio quel commento iniziale che determina il nome del tuo template, “Archives” è solo un esempio.
Sotto, metti il codice necessario per fare quello che vuoi.
Inserisci il template tra i file del tuo child-theme – se è valido vedrai il suo nome nell’elenco a discesa nell’editor delle pagine e potrai selezionarlo.
Dopodiché imposti quella pagina come pagina iniziale.
Fino qui ci sono, l’unica cosa se voglio utilizzare lo stesso menu del template ma con le voci diverse come posso fare? devo creare un nuovo menu e poi nel php ci devo inserire il nome del nuovo menu al posto del vecchio?
webmasterxxxPartecipantehttp://www.wpitaly.it/wiki/Main/DissezioneTemaWP46
mi basta creare un php con il seguente codice : /*
Template Name: (nome template)
*/
e poi il resto della pagina per creare un template personalizzato da inserire in una pagina, ho capito bene?
webmasterxxxPartecipanteCrei il template che vuoi, lo assegni ad una pagina e la scegli come pagina iniziale nelle impostazioni di WP.
alla creazione della pagina posso impostare il template da dargli sola a quella pagina? non ci ho mai fatto caso di sta cosa..
Come si fa non riesco a trovare questa funzione ma mica è un plugin che ti da la possibilità di fare questo?
webmasterxxxPartecipante@webmasterxxx, se hai modificato dei file del plugin non può essere rimasto tutto come prima, in quanto i nuovi file sovrascrivono quelli vecchi.
Dovrai rimettere su i file che hai modificato tu, a meno che quei file non siano stati cambiati dall’autore, e in tal caso dovrai rifare le modifiche manualmente.
Non è un buon sistema, le modifiche CSS le devi fare nel child theme e le modifiche PHP ai plugin si fanno meno possibile oppure se si può si crea un plugin.
Si infatti una piccola modifica l’ho trovata… avevo modificato il campo sotto a note ordine in scrivi il tuo messaggio sul biglietto per il tuo regalo ed ora è ritornato come prima.
Per quanto riguarda i child theme potresti spiegarmi cosa sarebbero e a cosa servono, perchè ne ho sentito spesso parlare ma non ho mai capito la loro funzione.
Grazie mille e buona serata.
webmasterxxxPartecipanteAggiornamento effettuato dopo aver fatto tutti i backup…comunque sembra che sia rimasto tutto come prima.
webmasterxxxPartecipanteDa come scrivi non penso che tu abbia modificato nessun codice del plugin ma ti riferisci solo al settaggio che dovrebbe restare tale.
Per i backup apri e leggi quel link che ti ho messo.
per modificare il colore e la grandezza dei caratteri dei prezzi non ci sta l’opzione che permette di farlo, e per questo ho dovuto fare delle modifiche sia dal php che sul file css di woocommerce
webmasterxxxPartecipanteDefinire “modifiche sui codici di wordpress”
scusami ho sbagliato a scrivere… mi riferivo sempre a woocommerce e sulle modifiche apportate ad alcune pagine comprese le modifiche sui caratteri dei prezzi ai prodotti
webmasterxxxPartecipanteSe non riesci a riprodurlo in un ambiente di prova, fai gli stessi backup di quando si aggiorna wordpress, nel caso ci fossero problemi puoi ritornare alla situazione precedente.
http://docs.woothemes.com/document/upgrade-instructions/
ma per quanto i riguarda le modifiche sui codici di wordpress dovrebbero rimanere?
mentre per il backup basta che vado sul php my admin e mi copio tutto l’sql giusto?
grazie ancora:)
webmasterxxxPartecipanteCi ho aggiunto la voce branding io stesso in quel modo è giusto?
-
AutorePost