Home › Forum › Problemi Vari con WP › Blogpost in /blog/
-
AutorePost
-
-
30 Gennaio 2012 alle 10:50 #20528palmerstoneroadPartecipante
Salve,
sto creando il mio primo sito con WordPress.
Vorrei strutturare il sito in questo modo
Home – Servizi – Contatti – Blog
in cui in /blog/ appaiano tutti i post man mano che li aggiungo. Al momento i post sono in Home.
Come posso spostare i post in /blog/ in modo da poter ricreare la Home?
grazie
-
30 Gennaio 2012 alle 11:17 #92686TittiModeratore
Crei le pagine e poi le selezioni da Impostazioni->Lettura
-
30 Gennaio 2012 alle 15:08 #92693palmerstoneroadPartecipante
ok ho creato la pagina /blog/ e inserito tutti i blog post da Impostazioni Lettura.
Ora come faccio a toglierli dalla HomePage e creare una nuova homepage?
-
30 Gennaio 2012 alle 18:11 #92697TittiModeratore
Crei la pagina che vuoi come Home, ci metti il contenuto, scegli il template tra quelli disponibili e la selezioni come home statica
-
31 Gennaio 2012 alle 13:31 #92715palmerstoneroadPartecipante
grazie per il supporto. ti riporto un pò di dubbi che ho:
cosa intendi per crei la pagina?
devo creare una pagina ex novo e caricarla tramite FTP?
Come la nomino? index.php, index.html ecc?
Come integro il mio contenuto con il template da me scelto?
Un’altra domanda: come faccio a impostare nome-articolo.html anzichè /nome-articolo/ in WP?
Vale per post e pagine?
-
31 Gennaio 2012 alle 14:07 #92718TittiModeratore
La pagina di testo la crei come hai creato l’altra, da Pagine->Aggiungi nuova, con la differenza che mentre l’altra la lasci vuota (perché i contenuti del blog vengono messi da index.php) questa la devi riempire. Se il contenuto è statico (testo) si visualizzerà in base al template che hai scelto, se vorrai un contenuto anche, o solo, dinamico, dovrai editare tu un nuovo file php di template che mostri quello che vuoi, se già non è presente un template con le caratteristiche che vuoi. Non puoi assolutamente nominare il file index.php perchè è un file già presente che ti serve proprio per generare la pagina blog, e neppure home.php
http://www.wpitaly.it/wiki/Main/UtilizzarePagine
http://codex.wordpress.org/Creating_a_Static_Front_Page
Per la scelta del permalink:
Puoi aggiungere la finale che vuoi, e nel tuo caso scriverai: /%postname%.html
Vale per gli articoli, non per le pagine.
Prima di prendere questa decisione però informati bene, perché rischi di fare due errori di fondo, e cambiare gli URL in corsa non è mai una buona idea. Uno è pensare che l’estensione html favorisca il ranking o cose del genere, perché non è provato. O, se magari un tempo lo è stato, oggi non è più. Secondo, l’URL con solo il postname è sconsigliato, anche se nell’ultima versione di WP le cose sono migliorate per i problemi generati da questa scelta. Anche per questa materia trovi sufficiente materiale in rete da valutare, e anche su questo forum se n’è già parlato.
-
3 Febbraio 2012 alle 17:38 #92852palmerstoneroadPartecipante
ciao,
quindi se volessi aggiungere un semplice “sito in costruzione” alla HomePage come devo agire esattamente?
grazie
-
3 Febbraio 2012 alle 18:13 #92854TittiModeratore
Se crei una pagina “sito in costruzione” e la fai come Home statica è solo una pagina come un’altra, il resto del sito si vedrà naturalmente, quindi non capisco cosa intendi… se vuoi che si venga indirizzati solo a quella, dovrai inserire una regola nell’htaccess per reindirizzare a quella pagina lଅ
Oppure non hai ancora niente e vuoi fare solo quella pagina l� E poi come ci lavori on line?
Ti conviene usare un plugin come questo, per poter continuare a lavorare sul sito
-
7 Febbraio 2012 alle 10:10 #92962palmerstoneroadPartecipante
ciao,
innanzitutto grazie per le tue informazioni
Ho inserito il plugin che mi hai consigliato in modo da lavorare con tanquillità .
Quello che non riesco a capire è come utilizzare un template inserendo moduli che non sono presenti nel template stesso.
Io vorrei fare una Home che usi la grafica del template che ho scelto ma personalizzarla con moduli fissi.
Devo creare una nuova home.ohp, index.html ecc? da quello che mi hai scritto mi sembra di no!
grazie ancora
-
7 Febbraio 2012 alle 13:16 #92981TittiModeratore
Ricapitoliamo, per l’home page statica:
1) Devi creare un nuova Pagina con il titolo che vuoi nell’editor delle pagine, mettendoci dentro il contenuto testuale che vuoi. Questo contenuto lo puoi visualizzare con un template scelto nell’apposito menu a discesa nella pagina stessa. Poi, come abbiamo detto, se la vuoi come home page la selezioni nell’apposito campo delle Impostazioni, e fin qua direi che ci sei.
2) Se il contenuto che vuoi visualizzare in questa pagina Home, sarà anche, o solo, dinamico (ad esempio, vuoi che appaia sempre e solo l’ultimo post pubblicato, o un menu, ecc…), e mettiamo che sicuramente non esista nel tema un file di pagina che mostri quello che vuoi, dovrai creare tu un nuovo template (cioè un file php) che contenga il codice necessario per chiamare ciò che vuoi visualizzare, template che poi sceglierai sempre nel menu a discesa una volta che l’avrai fatto con un editor di testo come notepad e inserito via FTP nei file del tema corrente.
Come si fa a creare un template di pagina?
Le indicazioni generali sono nel link già dati e in http://codex.wordpress.org/Pages
Il nuovo template può avere il nome che vuoi, qualcosa che ti ricordi cosa sia, ad esempio homepage.php, ma non deve essere uguale ad un file già presente nel tema.
Ovvio che quelli che trovi in quei tutorial sono esempi, e che possono non trattarsi di home page, però ti spiegano la struttura di un template di pagina in generale e il codice iniziale che deve contenere.
Per fare ciò puoi anche prendere ad esempio (cioè copiare) ciò che c’è scritto nel file template di default (spesso si chiama page.php) o quello che più si avvicina a ciò che vuoi, togliendo ciò che non ti interessa (ad esempio, la sidebar, o il footer, o il blocco dei commenti…) e aggiungendo ciò che desideri, modificandolo quindi nelle parti necessarie.
Chiaro che, anche senza saper scrivere in php, devi avere un po’ di dimestichezza, magari cercando tra i file già esistenti nel tema, o con google dato che di tutorial sulle Pagine ce n’è a bizzeffe, e fare prove, oppure cercare un plugin che ti permetta di mostrare ciò che vuoi, aggiungendo semplicemente uno shortcode nel corpo della Pagina stessa. Le possibilità sono infinite, e non troverai soluzioni già pronte per esigenze particolari.
Parti da una cosa semplice o da qualcosa di già fatto, o da altre Pagine, e intanto comincia a capire come funziona WP, perché la creazione di una home statica con contenuti dinamici può essere difficile da fare come prima cosa, se non conosci i linguaggi, se non trovi qualcosa di già pronto, e se come mi sembra hai ancora parecchia confusione.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.