Visualizzazione 0 filoni di risposte
Visualizzazione 0 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Plugin e temi di WP › comment bubble con link su nuovo commento
ciao a tutti,
Vicino al titolo di ogni articolo ho aggiunto una nuvoletta con indicati il numero di commenti ricevuti dall’articolo, per intenderci come mostrato in questa immagine:
questi i passaggi che ho seguito:
1) nel file index.php del tema, ho aggiunto:
<div class=”commentbubble”>“><?php comments_number(‘0’, ‘1’, ‘%’); ?> </div>
2) alla fine del file css ho aggiunto:
.commentbubble {
background-image: url(“images/comment_bubble.png”);
height: 37px;
width: 49px;
color: REPLACE WITH COLOR;
font-size: 25px;
text-align: center;
padding-top: 5px;
margin-right: 13px;
float:right;
}
3) nella cartella images del tema ho poi aggiunto l’icona comment_bubble.png
Se un articolo ha ricevuto dei commenti, cliccando sulla nuvoletta si viene linkati al primo commento della serie. Se però l’articolo non ha ricevuto nessun commento, cliccando sulla nuvoletta si viene linkati all’inizio dell’articolo, mentre io vorrei invece che si venisse linkati al form per l’inserimento del nuovo commento.
Sapreste aiutarmi?
ciao e grazie mille,
Riccardo
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0