Visualizzazione 4 filoni di risposte
Visualizzazione 4 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Plugin e temi di WP › Immagini in evidenza: eliminarle all'interno dell'articolo.
Salve a tutti,
sto lavorando in locale, con wordpress 4.4.2;
ho un problema con il tema che ho scelto (silvia ): quando imposto le immagini in evidenza dei post, queste vengono poi visualizzate anche all’interno del post stesso. C’è un modo per far si che questo non succeda? A quanto ho capito devo modificare il file content-single.php del tema, ma non so bene come fare.
Penso che la parte da modificare sia questa
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php hybrid_attr( 'post' ); ?>>
<div class="entry-post">
<div class="entry-content" <?php hybrid_attr( 'entry-content' ); ?>>
<?php if ( has_post_thumbnail() ) : ?>
<span class="thumbnail-link">
<?php the_post_thumbnail( 'silvia-featured', array( 'class' => 'entry-thumbnail', 'alt' => esc_attr( get_the_title() ) ) ); ?>
</span>
<?php endif; ?>
ma non sono sicuro! Qualcuno mi può dare una mano?
Grazie!
I temi originali non si modificano. Usi lo spazio Custom CSS se il tuo tema lo prevede oppure crei un child theme e nel suo foglio stile metti una regola CSS per non mostrare quell’elemento che dedurrai con Firebug o il browser Chrome.
Grazie mille per la risposta.
Il tema non prevede lo spazio Custom CSS, infatti sto utilizzando un tema child (scusa se non l’ho specificato prima!). Provo a inserire la regola per nascondere l’elemento in questione allora! Mi consigliate il codice
display: none;
?
nome dell’elemento {display:none;}
.single .entry-thumbnail {display:none;}
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0