Supporto » Sviluppare con WordPress » [NSFW] Tagliare l’immagine in evidenza

  • Sto sviluppando il tema per un mio sito di modelle e mi sono bloccato ai riassunti.
    Ho due problemi.
    1. Le immagini devo creare precise per metterle come immagini in evidenza. Successivamente saranno gli iscritti ad inserirle quindi vorrei capire come posso far si che l’immagine venga tagliata in modo che appaiano tutte della solita dimensione.
    2. Dove c’è il riassunto io ho deciso di mettere le categorie ma se in un articolo le categorie sono poche il riassunto è più corto. Esiste un modo per far si che sia tutto uguale?

    Questo è il mio codice:

    <!-- CORNICE RIASSUNTO SCHEDA -->
    <div id="content-card" class="pb-1 pt-1 px-0 py-0 font-italic font-weight-bold border-left border-right border-top border-white rounded-top divriassunti">
    	
    <!-- TITOLI ARTICOLI -->
    <center><a href="<?php the_permalink(); ?>" class="text-light" title="<?php the_title_attribute(); ?>"><?php echo the_title(); ?></a></center>
    
    </div>
    
    <div class="pb-0 pt-0 px-0 py-0 bg-warning border-right border-left border-white divriassunti">
    	
    <!-- IMMAGINETTE ARTICOLI -->
    <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'full', array( 'class' => 'img-fluid','card-img-top','image') ); ?></a>
    
    </div>
    
    <div id="content-category" class="pb-0 pt-0 px-0 py-0 font-italic font-weight border-left border-right border-white divriassunti shadow"><ul class="list-group list-group-flush">
    
    <!-- CATEGORIE ARTICOLI -->
    <h4 class="container-fluid text-justify font-italic text-danger px-2 py-2 link-category" style="font-size: 0.7em; letter-spacing:-0.3px;"><strong><center>DISPONIBILE PER:</center></strong><?php $taxonomy = 'category';       
           $post_terms = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) );
           $separator = ', ';
           if ( ! empty( $post_terms ) && ! is_wp_error( $post_terms ) ) {
           $term_ids = implode( ',' , $post_terms );
           $terms = wp_list_categories( array(
                                               'title_li' => '',
                                               'style'    => 'none',
                                               'echo'     => false,
                                               'taxonomy' => $taxonomy,
                                               'include'  => $term_ids,
                                               ) );
           $terms = rtrim( trim( str_replace( '<br />',  $separator, $terms ) ), $separator );
           echo  $terms;
          } ?></h4></ul>
    </div>
    	<div id="content-card" class="pb-1 pt-1 px-1 py-1 font-italic font-weight-bold border-bottom border-left border-right border-white rounded-bottom divriassunti shadow" style="font-size: 0.7em; letter-spacing:1.2px;">
    		<?php the_time( 'd/m/Y - g:i' ); ?>
    	</div>
    	
    <div class="card-body pb-0"></div>
    </div>
    <?php } ?>

    La pagina su cui ho bisogno di aiuto: [devi essere connesso per vedere il link]

  • Il topic ‘[NSFW] Tagliare l’immagine in evidenza’ è chiuso a nuove risposte.