Home › Forum › Problemi Vari con WP › Dove si trova una classe
-
AutorePost
-
-
6 Febbraio 2011 alle 21:05 #16669albyy911Partecipante
ciao a tutti vorrei modificare la classe item entry che fa parte dei css di defoult di wordpress.
c’è appunto un problema che non so dive è nascosto il file che contiene l’attributo.
Sapete dirmi voi dov’è nascosto??
grazie in anticipo
-
7 Febbraio 2011 alle 9:01 #81071SteveAglAmministratore del forum
se parli del tema… nel tema… in ogni caso o sono classi generate da file di core di WP e questi NON vanno mai cambiati al massimo se esiste un filtro si fa una funzione ad hoc.. ma non capsico a quale elemento tu ti riferisca.
-
7 Febbraio 2011 alle 12:45 #81079albyy911Partecipante
vedi questo è il blog che sto cercando di creare http://lnx.dvslab.it/wordpress/
ora la gestione degli articoli mi piace poco… e vorrei cambiarla ho notato che ogni articolo è inserito all’interno di un div che si chiama “item entry”.
pensa che cambiando quel div io possa cambiare il layout degli articoli.
è possibile questo secondo te??
-
7 Febbraio 2011 alle 12:46 #81081SteveAglAmministratore del forum
sicuro che il div nons ia generato dal tema? hai studiato la dissezione di un tema wordpress e il Loop sul nostro wiki?
-
7 Febbraio 2011 alle 13:34 #81085albyy911Partecipante
ok risolto sono riuscito nel mio progetto… Ora pubblico la soluzione:
il codice che scrive i post nel sito è questo:
<div class=”item entry” id=”post-<?php the_ID(); ?>”>
<div class=”itemhead”> <h3>
<?php the_title(); ?></h3>
<div class=”chronodata”>
<?php the_time(‘F jS, Y’) ?>
<!– by <?php the_author() ?> –>
</div>
</div>
<div class=”storycontent”>
<?php the_content(‘Read more »’); ?>
</div>
<small class=”metadata”>
<span class=”category”>Filed under:
<?php the_category(‘, ‘) ?>
<? if(!is_single()) echo “|”; ?>
<?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?>
<?php comments_popup_link(‘Comment (0)’, ‘ Comment (1)’, ‘Comments (%)’); ?>
</span>
<?php if ( function_exists(‘wp_tag_cloud’) ) : ?>
<?php the_tags(‘<span class=”tags”>Article tags: ‘, ‘, ‘ , ‘</span>’); ?>
<?php endif; ?> </small>
</div>
Il problema è che li mette uno sopra all’altro… io ho inserito un div che comprende tutto e gli ho dato with:30% e float: left nei css.
ora ho i post uno a finco di un altro.
lnx.dvslab.it/wordpress
grazie SteveAgl
-
7 Febbraio 2011 alle 13:35 #81086albyy911Partecipante
ha un’altra cosa… puoi passarmi il link per la dissezione di un tema wordpress e del loop di cui hai accennato prima?
cosi li leggo direttamente dalla wiki.
Grazie
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.