Visualizzazione 2 filoni di risposte
Visualizzazione 2 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › modifica consigliata sulle Faq per inserimento codice, un aiutino :-)
Ciao a tutti, ho trovato a questa pagina: http://www.wpitaly.it/wiki/Main/FaqGenerali#toc9
al punto 2.3 il consiglio che cercavo.
Ora però ho un piccolissimo problema e se mi potete aiutare…
Il template scelto è TypoXP-Reloaded, adsense ready.
L’unica pagina che trovo con riferimenti a quanto suggerito al punto 2.3 è “articolo singolo”.
Però i riferimenti sono scritti in questo modo: (ho eliminato la parte con il punto di domanda perchè non sapevo se mi faceva passare il post…)
php if (have_posts()) : while (have_posts()) : the_post();
<div class=”post” id=”post-<?php the_ID();
come/dove inserisco il consiglio suggerito nelle FAQ?:
php if ($nr_post == 1 ) :
<p>CODICE HTML PERSONALIZZATO</p>
php endif; ?>
php $nr_post ++;
php endwhile;
La modifica vorrei farla per un semplicissimo motivo: Nella Home Page ( e solo in quella) i banner mostrati sono solo tre, e desidererei aggiungerne un altro a metà pagina circa (o dopo due articoli)
Ringrazio anticipatamente per l’aiutino
Avelix
Dove… dipende dove vuoi che il codice appaia, se vuoi che appaia dopo l’articolo nel tuo Loop avrai un the_content() o the_excerpt() che sono il testo o il riassunto dell’articolo… suggerirei di studiare la dissezione di un tema WordPress sul wiki per capire come è fatto un tema ed in particolare il loop
Se conosci un inglese anche molto basilare, ti consiglio di seguire ache questo tutorial (oltre a leggere come modificare un tema, come suggerito da SteveAgl):
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0