Home › Forum › Plugin e temi di WP › rimuovere la sidebar per ampliare simple forum
-
AutorePost
-
-
3 Marzo 2009 alle 2:35 #9682caropaoloPartecipante
Ciao,
ho installato Simple Forum e lo consiglio a chi avesse bisogno di un forum: è meglio degli altri plugin.
Adesso vorrei eliminare la sidebar dalla pagina che ho dedicato al forum. Come devo fare?
Sto usando il template Gear. Ho trovato queste istruzioni in inglese, ma non ho capito cosa devo fare http://simplepressforum.com/support-forum/spf-version-4/removing-sidebar-401/
qualcuno sarebbe cosଠcortese da spiegarmi meglio come si fa?
-
3 Marzo 2009 alle 7:41 #63312SteveAglAmministratore del forum
Suppongo che il plugin ti faccia creare una pagina con un tag per il forum, crei un template di pagina (vedi il wiki) che non carica la sidebar. Parti dal file page,php del tuo tema ne fai una copia aggiungi la testata per renderlo un template di pagina (vedi wiki) e da qualche parte caricherà la sidebar (get_sidebare tipicamente) la togli et voilà … potrebbe essere necessario ridefinire la dive del contenuto e aggiungere una regola al css… ma dipende molto dal tema.
-
3 Marzo 2009 alle 11:10 #63324caropaoloPartecipante
Grazie per la risposta, ma non essendo un addetto ai lavori (ho scelto wordpress proprio per questo) non ho capito granchè di quello che mi hai detto.
Il plugin non mi fa creare una pagina con il tag per il forum (come fa ad esempio wpforum) ma, lui stesso, una volta caricato e installato, crea una pagina che si chiama forum. Si tratta di una pagina vuota, dove non c’è nulla nè in wysiwyg nè in html.
Nel link che ho postato sopra ci sono le istruzioni passo passo proprio per modificare il mio tema. Purtroppo, per quanto capisca abbastanza l’inglese, non riesco a capire gli ultimi 2 step. Se gli dai un’occhiata tu magari mi sai illuminare.
Grazie infinite
-
3 Marzo 2009 alle 11:26 #63325SteveAglAmministratore del forum
4. After that, go into your style.css class, copy the properties for .content, paste it, rename it to what you named your class in step 4.
5. Delete this from the class:
4) Dopo di ciò, aprire il foglio stile style.css copiare le proprietà di .content (tutto il blocco .content compreso), rinominarlo col nome della vostra classe del passo 3 (non 4 come dice)
5) Daa questa classe eliminare: url(images/sidebar-pattern.gif) repeat-y 612px 0
Far e sempre copia di tutto prima di modificare!!!
-
3 Marzo 2009 alle 13:29 #63345caropaoloPartecipante
Grazie mille.
Non mi è ancora chiaro il passo 4: dopo aver copiato il blocco .content, dove lo devo incollare? e che significa che lo devo rinominare col nome della classe del passo 3?
Scusa per le banalità che ti chiedo ma è la prima volta che metto mano al foglio di stile. Spero che questa discussione possa essere utile anche ad altri.
-
3 Marzo 2009 alle 13:40 #63348SteveAglAmministratore del forum
lo incolli nello stesso file… e nel passo 3 credo ti faccia cambiare il nome di una classe e questo è il nome che devi usare.
-
3 Marzo 2009 alle 18:11 #63378caropaoloPartecipante
Ti ringrazio ma c’è qualcos’altro che non mi funziona quindi per evitare di impazzire ho deciso di cambiare template per potermi attenere alle istruzioni del tutorial standard di simple press forum: http://simplepressforum.com/creating-a-wordpress-page-template/
Solo che anche qui, allo step 4, c’è un intoppo. Stavolta non dipende dal mio inglese ma dal fatto che il tutorial forse è un pò vecchiotto e i nuovi temi hanno qualcosa di diverso.
Dopo essere riuscito a eliminare la sidebar negli step 1-3, allo step 4 si spiega come allargare la colonna centrale (quella che contiene il forum). Si dice di individuare la stringa
<div id=”content” class=”narrowcolumn”>
e sostituire la voce “narrowcolumn” con la voce “fullwidth”. Poi occorre andare al foglio di stile dove specificare le dimensioni della classe “fullwidth”.
Solo che nel mio file, la stringa è semplicemente <div id=”content”>, senza l’indicazione della classe. Di conseguenza come dovrei fare ad allargare il forum?
-
3 Marzo 2009 alle 19:21 #63381SteveAglAmministratore del forum
perchè quelle istruzioni fanno riferimento al tema di default… ovviamente sono generiche e non si applicano alle migliaia di temi ed ai vari modi in cui sono realizzati, queste modifiche presuppongono che l’utente abbia un minimo di conoscenze di HTML e CSS in modo da poter metter mano al suo tema, cosa che vale per qualsiasi modifica uno voglia fare. Se non si sa dove mettere le mani meglio evitare… metteresti mano alla tua vettura senza saper nulal di meccanica?
-
4 Marzo 2009 alle 11:25 #63405caropaoloPartecipante
Si certo, hai ragione. Però se la mia vettura fosse reinstallabile in un paio di minuti ci metterei mano pur non essendo un meccanico. Magari chiederei consigli su un forum!
Purtroppo quel tutorial spiega come modicare il tema di default ma tutti i migliori temi sono fatti come quello che
ho adesso.
Grazie comunque, sei stato gentilissimo. Sapresti indicarmi un sito dove si spiega un pò di html e css?
-
4 Marzo 2009 alle 11:39 #63406wollyAmministratore del forum
http://html.it secondo me uno dei migliori sia per html che per php e CSS
-
4 Marzo 2009 alle 15:30 #63419caropaoloPartecipante
Grazie mille.
Nel frattempo ho risolto il problema facendomi consigliare dal forum ufficiale di simple press
-
14 Marzo 2009 alle 13:26 #63755desdredPartecipante
Ho un problema simile.
Ho installato simple forum e uso il tema newsweek. Questo tema ha in homepage 2 sidebar sul lato destro (il sito è magozine.it). L’impostazione per le pagine create comporta che ci siano entrambe le sidebar sul lato destro. Mentro quando si apre un articolo qualsiasi resta solo la sidebar più esterna, l’altra scompare. Quessta è l’impostazione del tema.
Quando apro la pagina del forum ci sono entrambe le sidebar, cosa che mi fa pensare che venga usato il codice di page.php tranne che pr i contenuti interni dove invece c’è il forum. Io vorrei che nella navigazione all’interno del forum ci sia solo la sidebar più esterna (entrambe le sidebar mi creano problemi anche grafici quando bisogna scrivere un post nel forum perchè l’area di testo si sovrappone all prima sidebar). Dove metto mano? non riesco a trovare un idex.php del forum. Ho provato a cercare in ogni file del forum per cercare riferimenti all’inclusione di page.php o simili…
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.