Home › Forum › Problemi Vari con WP › visualizzare pagina senza sidebar
-
AutorePost
-
-
30 Ottobre 2008 alle 19:24 #8361AvelixPartecipante
Ciao a tutti,
Come si può aprire una pagina in wordpress senza che si visualizzi la sidebar?
Solo per quella pagina.
Per farvi capire:
http://www.orologipertutti.it/contattaci/
In breve: Ho utilizzato il plugins Include.it per potere inserire in WP uno script che serve per l’assistenza tramite ticket.
Però come potete vedere, il fatto che mi visualizza la sidebar penalizza l’utente, che deve muoversi disagevolmente tramite lo scroll.
Mi servirebbe che solo per questa pagina la sidebar non venisse visualizzata.
PS: credo che la risposta più ovvia sia quella del template, ma sinceramente non ho capito molto su come creare (eventualmente) un template che abbia le caratteristiche di default (del tema utilizzato) ma senza la sidebar.
Grazie per l’aiuto!!!
Teodoro
-
30 Ottobre 2008 alle 19:35 #58987wollyAmministratore del forum
l’unica soluzione per togliere la sidebar da una pagina è quella di creare un template personalizzato altre non ce ne sono.
-
30 Ottobre 2008 alle 20:07 #58989gollum1Partecipante
cerca sul wiki nella sezione dedicata ai template di pagina e leggiti dissezione di un tema, sempre nel wiki.
Byez
—
Gollum1
-
31 Ottobre 2008 alle 0:26 #59001AvelixPartecipante
Intanto grazie, sia a te Gollum che a Wolly
In realtà (sicuramente a causa di un mio gap) ci ho capito ben poco su come costruire un template personalizzato
Faccio cosi: mi ci dedico con impegno e poi eventualmente posto sul forum gli eventuali dubbi o parti che non ho ben compreso (ovviamente prima cerco se sono state trattate!)
Enjoy WP
Teodoro
cerca sul wiki nella sezione dedicata ai template di pagina e leggiti dissezione di un tema, sempre nel wiki.
Byez
—
Gollum1
-
31 Ottobre 2008 alle 0:42 #59003AvelixPartecipante
cerca sul wiki nella sezione dedicata ai template di pagina e leggiti dissezione di un tema, sempre nel wiki.
Byez
—
Gollum1
Scusami Gollum, ma ho una sola e unica domanda:
Devo copiare tutta la cartella del tema e, al fine di ottenere quanto ho espresso nel primo post, ovvero “Non visualizare la sidebar per una singola pagina, e solo quella”, eliminare una sola riga di codice dal file index.php del tema????
Mammamia ma è pazzesco se è cosi e se ho ben capito!
Ricapitolando: (dimmi poi se è giusto)
In sostanza, quindi, mi basta copiare l’intera cartella del tema e rinominarla con un nome a mia scelta (esempio: avelix )
Modificare (basta eliminarlo vero?) nel file index.php il riferimento a:
<?php get_sidebar(); ?>
fatto questo carico il tema
E poi?
Non ho capito a questo punto cosa devo fare?
Immaginando di essere sul mio WP, e nella schermata dove si scrive la "pagina" ho le varie "finestre" dove inserire titolo, testo ecc ecc...
Sulla colonna ho le opzioni, e tra queste non capisco dove/come devo dire che voglio che la pagina mi venga visualizzata con il template che in questo caso altro non è che la copia del tema modificata
Sembrano stupidate per chi le sa, ma ti asicuro che ci sto diventando pazzo
Grazie ancora per l'aiuto, sono convinto che tornerà utile anche ad altri utenti
Teodoro
-
31 Ottobre 2008 alle 9:24 #59004AvelixPartecipante
cerca sul wiki nella sezione dedicata ai template di pagina e leggiti dissezione di un tema, sempre nel wiki.
Byez
—
Gollum1
Ciao, ulteriore domanda diretta, dopo avere letto la parte dedicata ai template di pagina:
Posso ovviare al problema della sidebar con un semplice stratagemma:
duplico il file index.php del tema che utilizzo e lo rinomino con un nome di mia scelta (esempio: avelix.php) lo uplodo nella cartella in remoto del tema.
In questo modo mi sarebbe possibile richiamarlo poi dalla finestrella dell’opzione per il template di pagina?
Credetemi che sto andando in crisi e mi perdo tra le mille informazioni gentilmente rese disponibili nel wiki.
Grazie ancora di tutto
Teodoro
-
31 Ottobre 2008 alle 22:17 #59030gollum1Partecipante
Devo copiare tutta la cartella del tema e, al fine di ottenere quanto ho espresso nel primo post, ovvero “Non visualizare la sidebar per una singola pagina, e solo quella”, eliminare una sola riga di codice dal file index.php del tema????
Mammamia ma è pazzesco se è cosi e se ho ben capito!
infatti… è pazzesco quello che dici. Hai interpretato male quello che hai trovato nella documentazione che ti avevo suggerito evidentemente.
Ricapitolando: (dimmi poi se è giusto)
In sostanza, quindi, mi basta copiare l’intera cartella del tema e rinominarla con un nome a mia scelta (esempio: avelix )
Modificare (basta eliminarlo vero?) nel file index.php il riferimento a:
<?php get_sidebar(); ?>
fatto questo carico il tema
no… non devi copiare tutto il tema… semplicemente ti dicevo di crearti una pagina di template, per quello che ti indicavo il wiki e cercare che cosa sono i template.
in pratica copi il solo file index.php nella stessa root del tema (dove si trova l’à¬ndex.php originale per intenderci, naturalmente lo devi rinominare, esempio come template-contatti.php
da questo file cancelli la riga che carica la sidebar (quella che hai indicato tu).
in testa al file gli metti il commento che lo farà interpretare da wp come un template (<?php /* Template Name: nome_template */ ?>)
a questo punto hai un template di pagina senza sidebar che può essere utilizzato per visualizzare la pagina che desideri (quando editi la pagina lo indichi come template di pagina a cui riferirsi).
E poi?
Non ho capito a questo punto cosa devo fare?
Immaginando di essere sul mio WP, e nella schermata dove si scrive la “pagina” ho le varie “finestre” dove inserire titolo, testo ecc ecc…
Sulla colonna ho le opzioni, e tra queste non capisco dove/come devo dire che voglio che la pagina mi venga visualizzata con il template che in questo caso altro non è che la copia del tema modificata
Sembrano stupidate per chi le sa, ma ti asicuro che ci sto diventando pazzo
Grazie ancora per l’aiuto, sono convinto che tornerà utile anche ad altri utenti
Ciao, ulteriore domanda diretta, dopo avere letto la parte dedicata ai template di pagina:
Posso ovviare al problema della sidebar con un semplice stratagemma:
duplico il file index.php del tema che utilizzo e lo rinomino con un nome di mia scelta (esempio: avelix.php) lo uplodo nella cartella in remoto del tema.
In questo modo mi sarebbe possibile richiamarlo poi dalla finestrella dell’opzione per il template di pagina?
Credetemi che sto andando in crisi e mi perdo tra le mille informazioni gentilmente rese disponibili nel wiki.
Grazie ancora di tutto
ecco questo è già un discorso più sensato…
devi solo dirgli che è un template (leggi le mie risposte più sopra in questo stesso post), e poi caricarlo dal menù a discesa che troverai nella pagina dove scrivi i post, dove ti vengono elencati tutti i template disponibili nel tuo tema.
Byez
—
Gollum1
-
1 Novembre 2008 alle 0:52 #59036AvelixPartecipante
no… non devi copiare tutto il tema… semplicemente ti dicevo di crearti una pagina di template, per quello che ti indicavo il wiki e cercare che cosa sono i template.
in pratica copi il solo file index.php nella stessa root del tema (dove si trova l’à¬ndex.php originale per intenderci, naturalmente lo devi rinominare, esempio come template-contatti.php
da questo file cancelli la riga che carica la sidebar (quella che hai indicato tu).
in testa al file gli metti il commento che lo farà interpretare da wp come un template (<?php /* Template Name: nome_template */ ?>)
a questo punto hai un template di pagina senza sidebar che può essere utilizzato per visualizzare la pagina che desideri (quando editi la pagina lo indichi come template di pagina a cui riferirsi).
Grazzzzzzzzieeeee, adesso (in parte) è come volevo…in parte perchè: se la sidebar adesso non viene più visualizzata, mi rimane un problema: come posso fare visualizzare la pagina interamente, ovvero che occupi tutta la schermata?
Infatti, adesso il risultato è questo
http://www.orologipertutti.it/contattaci/
Come puoi vedere…in realtà ho risolto a metà
Scusami davvero per la mia incapacità a comprendere la documentazione…mi sento mortificato per questo e ho già stampato tutta la guida per applicarmici al fine di capire
Teodoro
-
1 Novembre 2008 alle 9:40 #59038gollum1Partecipante
in questo caso devi lavorare di css, cambi l’ID del div o la classe e ti creai l’entri in style.css adeguato…
byez
—
Gollum1
-
16 Febbraio 2009 alle 13:28 #62781pinoPartecipante
Salve anche io sono interessato a questa discussione,
Una volta copiato il file index.php (mettiamo che uso dreamweaver)incollo il codice in un altro file e lo rinomino anche index.php? e lo inserisco nella stessa cartella del tema?
-
16 Febbraio 2009 alle 15:25 #62788SteveAglAmministratore del forum
Si.. meglio NON falo con DW, e poi perchè è sia un template ad esempio di pagina deve avere una intestazione, leggi i link presenti nella discussione
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.