Home › Forum › Problemi Vari con WP › Aggiungere template in questo tema
-
AutorePost
-
-
12 Agosto 2014 alle 20:46 #27745ceradiniPartecipante
Salve a tutti, sto effettuando un cambio di tema al mio sito in modo tale che quando avrò finito di personalizzare quest’ultimo sarò in grado di scegliere qual’è il migliore.
Il tema che sto “testando” è accesspress-lite.
Con questo ho però riscontrato un problema nella gestione dei template, il tema infatti non mette a disposizione la possibilità di scegliere il modello pagina in fase di creazione o aggiornamento della stessa; una pagina del mio sito (quella delle news) è legata ad un template php che crea un elenco dinamico con un insieme ordinato di articoli (tramite uno script apposito).
Il tema al posto del classico menù a tendina con la scelta del modello mette a disposizione una sua area nella quale è possibile scegliere tra diversi layout (sidebar a destra,sinistra,ecc..).
Qualcuno sarebbe cosଠgentile da dare un’occhiata al tema per vedere come aggiungere un layout? oppure è possibile aggiungere uno script php direttamente in fase di creazione della pagina (nella pagina con il testo per intenderci).
p.s.
Vi scrivo anche il codice php che dovrei implementare (probabilmente non vi serve ma solo per far notare la banalità dello script)
<?php $photog_posts = new WP_Query('category_name=eventi'); while($photog_posts->have_posts()) : $photog_posts->the_post(); ?>
.. codice html ...
<?php endwhile; ?>
-
14 Agosto 2014 alle 10:16 #112869TittiModeratore
Quel tema funziona come qualsiasi altro tema, puoi creare il tuo template di pagina, aggiungerlo ai file del tema e poi sceglierlo nella lista a discesa nell’editor di creazione pagine, dal momento che vedi quel template nel menu significa che funziona, ma se poi una volta scelto e attivato non funziona sarà per come è scritto il template.
Ho installato il tuo tema in prova, inserito un template dei miei e funziona tutto regolarmente, studia quindi come creare un template di pagina nel Wiki o su qualsiasi altra fonte attendibile nel web.
PS: Tanto per salvaguardare la nostra lingua… Si scrive qual è… non qual’è.
-
14 Agosto 2014 alle 19:25 #112879ceradiniPartecipante
Non so come tu faccia a vederlo ma nel menù destra dell’editor di pagina da me sono presenti solamente le voci Genitore ed Ordinamento, manca quindi la voce modello (solitamente presente in tutti i temi)..
p.s. Versione wordpress -> 3.9.2
-
14 Agosto 2014 alle 20:29 #112880wollyAmministratore del forum
puoi creare il tuo template di pagina, aggiungerlo ai file del tema e poi sceglierlo nella lista a discesa nell’editor di creazione pagine
-
14 Agosto 2014 alle 20:32 #112881TittiModeratore
Come puoi vedere qui ho il tuo tema attivato e qui c’è il menu delle pagine, non è quindi il tuo tema ma qualcos’altro che te lo nasconde.
Essendo iscritto già da un po’ a questo forum dovresti aver letto almeno una volta il “leggere con attenzione” in questa pagina e sapere di dover fare le prove descritte prima di aprire un topic per un problema di questo tipo.
-
14 Agosto 2014 alle 21:09 #112882ceradiniPartecipante
Questi sono i miei attributi nel menù dell’editor.
Il tema l’ho testato in locale senza apportare nessuna modifica.. quindi non mi spiego il fatto che a me non sia presente la voce di scelta del modello, sapete per caso da dove possa provenire il problema? dato che su internet non ho trovato nessun altro che abbia il medesimo “disguido”.
Grazie.
-
14 Agosto 2014 alle 21:23 #112883TittiModeratore
Leggi le risposte, per favore
dovresti aver letto almeno una volta il “leggere con attenzione” in questa pagina e sapere di dover fare le prove descritte
-
16 Agosto 2014 alle 21:18 #112934ceradiniPartecipante
Io ho fatto le dovute prove, ho testato in locale con un wordpress nuovo senza plugin attivi e con l’ultima versione del tema (accesspress lite) ma ancora non è presente la scelta del template; so che a questo punto non è più un problema del template ma sapete per caso come possa risolvere?
Grazie dell’aiuto.
-
17 Agosto 2014 alle 9:54 #112937SteveAglAmministratore del forum
Se non hai creato NESSUN template di pagina il menu a discesa per la selezione del modello nelle pagine ovviamente NON appare.
-
18 Agosto 2014 alle 17:00 #112942ceradiniPartecipante
Certo, ecco dove sbagliavo, grazie per l’aiuto!
-
18 Agosto 2014 alle 21:16 #112966
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.