Visualizzazione 1 filone di risposte
Visualizzazione 1 filone di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › Come si esclude il titolo della Homepage?
Ciao a tutti.
Da pannello ho creato diverse pagine tra cui la Homepage. Vorrei però poter escludere il titolo della “sola” homepage e non quello delle altre pagine, di modo che quando visito il sito, nella Home non mi appaia il titolo sopra i miei contenuti.
Come va scritto il codice e dove lo devo posizionare per avere il risultato richiesto?
Questo credo sia dove va inserito il codice per verificare se mi trovo in Home ed escludere quindi la scritta HomePage:
...<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h1>• <?php the_title(); ?> •</h1>
<div class="entry">
<?php the_content('leggi tutto �'); ?>
</div>
</div>
<?php endwhile; ?>...
Spero nell’aiuto di qualche Guru
Ciao e grazie
Ermes
Non ho capito perchè la homepage che è quella del blog la hai creata exnovo, comunque puoi verificare con un if del tipo <?php if ( is_home() { fai quello che credi } ) ?> nel tuo caso credo tu voglia invece verificare di NON essere in home quindi sarà <?php !if ( is_home() { fai quello che credi } ) ?>
Alternativa più semplice è farsi una template di pagina apposito che non abbia il titolo ed assegnare alla pagina home quel template di pagina.
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0