Home › Forum › Plugin e temi di WP › Visualizzazione pagine
-
AutorePost
-
-
28 Novembre 2011 alle 15:35 #19899fabioc82Partecipante
Io sono nuovo all’utilizzo di WP e mi sento come un pesce fuor d’acqua…
avrei bisogno urgente di vari consigli per realizzare un blog per pescatori.
Il primo problema che dovrei risolvere è il seguente: COME FACCIO A TOGLIERE IL TITOLO DELLA PAGINA dalla visualizzazione della stessa??
Mi spiego meglio: ho creato delle pagine (che andranno a contenere le informazioni relative ai blogger del sito), al momento della creazione di una pagina inserisco il titolo nell’apposito box, poi creo il contenuto con la voluta formattazione… PERO’ nel front-end, quando vado a visualizzare la pagina mi viene fuori in grigio il titolo della pagina seguito poi dal testo con relativa formattazione. Come faccio a NON FAR VISUALIZZARE quel titolo pagina???
-
28 Novembre 2011 alle 15:59 #90196TittiModeratore
Basta togliere nel template della pagina il rigo che dà il comando di stampare il titolo, ciò che sta attorno a php the_title(); Occhio a non togliere troppo, e fai backup del file prima delle modifiche. Consigli:
Dato che sei agli inizi potresti imparare a commentare invece che a cancellare, perché se per qualche modifica ci ripensi ti ritrovi il codice sempre là¬.
Tieni presente che all’aggiornamento del tema perderai le modifiche quindi comincia a studiare per fare un child theme.
-
28 Novembre 2011 alle 16:54 #90199fabioc82Partecipante
Grazie Titti, provo subito… Ovvio che preferisco commentare in HTML per nn perdere l’originale…
“studiare per fare un child theme”… appena avrò tempo lo farò, purtroppo ora mi preme realizzare sto blog il più velocemente possibile..l’unica cosa su cui posso contare sono gli anni passati alla facoltà di informatica.
Grazie ancora… ti posterò l’esito!
-
28 Novembre 2011 alle 17:34 #90202SteveAglAmministratore del forum
Se hai passato anni a fare informatica leggere sul codex inglese i child theme ti richiederà 20 minuti al massimo fra leggere e capire… più veloce di cos’…
-
28 Novembre 2011 alle 17:39 #90203fabioc82Partecipante
FAILED!! nn ci son riuscito! In che file esattamante devo apportare quelle modifiche.. Sono riuscito a creare un Theme Child…ma senza risolvere il problema (da lଠho visto che posso giocare con il css del template…ma credo che io debba trovare la funzione che stampa il titolo delle pagine…).
Ho tentato poi di cercare all’interno dei vari files .php :
header.php
page.php …ma nn credo vadano…
poi ho provato a modificare (sempre senza perdere l’originale) i file home_loop.php …e qui sono riuscito a non visualizzare il titolo della pagina…. MA SOLO DELLA HOME… non delle pagine da me create!
e poi ho provato anche in loop.php ….nada!
Potreste cortesemente indicarmi meglio dove andare a cercare il comando “php the_title();” giusto????
T.a.l.
-
28 Novembre 2011 alle 17:47 #90204fabioc82Partecipante
si si… SteveAgl, nn ho avuto problemi a capire il Child Theme…il punto è che nn riesco a capire che parametro di stile usano i TITOLI delle PAGINE… H1…H2…Header… ho provato a fare una ricerca su tutti gli attributi di testo in colore grigio (#fff) (visto che il titolo appare in quel colore) … ne ho modificati un paio col colore nero… ma… ricaricando il file e poi il template nn vedo nessuna modifica…
grazie ancora…
P.S.
Purtroppo la mia laurea in informatica è rimasta appesa al muro… ho intrapreso un’altra strada, e ad ogni modo nn sono mai stato uno smanettone (ci sono informatici ed informatici…io sono del tipo peggiore! …è la voglia che mi fregava…)
-
28 Novembre 2011 alle 18:15 #90206SteveAglAmministratore del forum
Bhe dipende pure dal tema che usi.. che non ci dici quale sia…
-
28 Novembre 2011 alle 19:21 #90210fabioc82Partecipante
ops… sorry.. il theme è travel-blogger …ed il blog che sto creando è b1team.bestone.it …nn è pubblicità …è solo per farmi capire meglio..
grazie ancora.
-
28 Novembre 2011 alle 19:35 #90212SteveAglAmministratore del forum
Dirti dove sta the_title su un tema sconosciuto proprio non saprei.. un grep su tutti i file o un banale cerca di windows anche sul contenuto di tutti i file dovrebbe farteli scoprire.. ora non posso certo scaricare il tema per studiarmelo io.
-
28 Novembre 2011 alle 19:35 #90213TittiModeratore
Ho scaricato il tema, ho aperto la cartella e ho visto subito almeno tre template di pagina: onecolumn-page, onecolumn-page-nosidebar e page, e tutti e tre hanno all’interno:
<h1 class="entry-title"><?php the_title(); ?></h1>
Tempo dell’operazione: due minuti. Mi piacerebbe sapere come facevi a dire che non c’era quella riga
PS: il Child Theme si fa anche per i cambiamenti sui file PHP non solo sui CSS
-
28 Novembre 2011 alle 19:45 #90214SteveAglAmministratore del forum
ehhh ma lui ha fretta…
-
29 Novembre 2011 alle 9:14 #90219fabioc82Partecipante
Ecco…infatti andavo a modificare solo la page.php e NON MI ERO ACCORTO che c’era un php per tutte le tipologie di pagina… come dicevo… sono alle prime armi… scusate l’ignoranza… e la fretta SteveAgl (purtroppo è un mio difetto, ma davvero ho tanto tanto da fare il giorno e PURTROPPO ho poco tempo da dedicare a svariate cose tra cui l’uso di WP) …
cmq…davvero GRAZIE per l’aiuto… spero un giorno, magari, di poter essere d’aiuto in qualche modo.
(sicuramente seguiranno altre mie “ignoranti” domande).
FabioC82
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.