Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coppa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come abbellire il modulo dei commenti di WordPress (Guida definitiva)

Nota editoriale: guadagniamo una commissione dai link dei partner su WPBeginner. Le commissioni non influenzano le opinioni o le valutazioni dei nostri redattori. Per saperne di più su Processo editoriale.

Volete cambiare lo stile del modulo dei commenti di WordPress sul vostro sito web?

I commenti giocano un ruolo importante nella costruzione del coinvolgimento degli utenti su un sito web. Un modulo per i commenti di facile utilizzo e di bell’aspetto incoraggia gli utenti a partecipare alla discussione.

In questo articolo, vi mostreremo come modellare facilmente il modulo dei commenti di WordPress per aumentare il coinvolgimento sul vostro sito web.

Styling WordPress comment form

Prima di iniziare

I temi di WordPress controllano l’aspetto del vostro sito web. Ogni tema WordPress viene fornito con diversi file, tra cui file di modelli, file di funzioni, JavaScript e fogli di stile.

I fogli di stile contengono le regole CSS per tutti gli elementi utilizzati dal tema WordPress. È possibile aggiungere il proprio CSS personalizzato per sovrascrivere le regole di stile del tema.

Se non l’avete mai fatto prima, consultate il nostro articolo su come aggiungere CSS personalizzati in WordPress per i principianti.

Oltre ai CSS, potrebbe essere necessario aggiungere alcune funzioni per modificare l’aspetto predefinito del modulo dei commenti di WordPress. Se non l’avete mai fatto prima, consultate il nostro articolo su come copiare e incollare il codice in WordPress.

Detto questo, diamo un’occhiata a come modellare il modulo dei commenti di WordPress.

Poiché si tratta di una guida piuttosto completa, abbiamo creato una tabella dei contenuti per facilitare la navigazione:

Modellare il modulo dei commenti di WordPress utilizzando il costruttore di temi SeedProd

Questo metodo richiede SeedProd, il miglior plugin per la creazione di pagine e temi per WordPress presente sul mercato.

È consigliato ai principianti che non hanno esperienza di codifica. Tuttavia, l’aspetto negativo di questo metodo è che sostituisce il tema WordPress esistente con un tema personalizzato.

Per prima cosa, è necessario installare e attivare il plugin SeedProd. Per maggiori dettagli, consultate la nostra guida passo passo su come installare un plugin di WordPress.

Nota: per accedere alla funzione di creazione di temi è necessario almeno il piano PRO.

Dopo l’attivazione, dovrete creare dei modelli per il vostro tema WordPress personalizzato. SeedProd consente di generare facilmente questi modelli utilizzando uno dei temi incorporati.

Per istruzioni dettagliate, consultate il nostro tutorial su come creare un tema personalizzato per WordPress senza codificare.

Una volta generati i modelli del tema, è necessario modificare il modello Single Post.

Edit the single post template

In questo modo verrà caricata l’anteprima del singolo post nell’interfaccia del costruttore del tema SeedProd. Si noterà il blocco del modulo dei commenti in fondo all’anteprima.

Edit your comment form in SeedProd

È sufficiente fare clic sul modulo di commento per visualizzarne le proprietà nel pannello di sinistra.

Da qui è possibile aggiungere una nota di commento o un’informativa sulla privacy; si può anche passare alla scheda Avanzate per modificare lo stile del modulo di commento senza scrivere alcun codice CSS.

Advance styling options for comment form in SeedProd

Una volta terminato, non dimenticate di fare clic sul pulsante Salva per pubblicare le modifiche.

Con SeedProd è facilissimo modificare lo stile di qualsiasi elemento del sito web senza scrivere codice.

Tuttavia, si tratta di un costruttore di temi e potreste già utilizzare un tema WordPress che vi piace. In questo caso, i seguenti suggerimenti vi aiuteranno a modificare manualmente gli stili dei moduli dei commenti in WordPress.

Cambiare lo stile del modulo dei commenti in WordPress

Nella maggior parte dei temi WordPress è presente un modello chiamato comments.php. Questo file viene utilizzato per visualizzare i commenti e i moduli di commento sui post del blog. Il modulo dei commenti di WordPress viene generato utilizzando la funzione: <?php comment_form(); ?>.

Per impostazione predefinita, questa funzione genera il modulo di commento con tre campi di testo (nome, e-mail e sito web), un campo textarea per il testo del commento, una casella di controllo per la conformità GDPR e il pulsante di invio.

È possibile modificare facilmente ciascuno di questi campi semplicemente modificando le classi CSS predefinite. Di seguito è riportato un elenco delle classi CSS predefinite che WordPress aggiunge a ogni modulo di commento.

#respond { }
#reply-title { }
#cancel-comment-reply-link { }
#commentform { }
#author { }
#email { }
#url { }
#comment
#submit
.comment-notes { }
.required { }
.comment-form-author { }
.comment-form-email { }
.comment-form-url { }
.comment-form-comment { }
.comment-form-cookies-consent { }
.form-allowed-tags { }
.form-submit

Modificando semplicemente queste classi CSS, è possibile cambiare completamente l’aspetto del modulo dei commenti di WordPress.

Proviamo a cambiare alcune cose, in modo da avere una buona idea di come funziona.

Per prima cosa, inizieremo evidenziando il campo attivo del modulo. L’evidenziazione del campo attivo rende il modulo più accessibile alle persone con esigenze particolari e rende il modulo dei commenti più gradevole sui dispositivi più piccoli.

#respond {
background: #fbfbfb;
padding:0 10px 0 10px;
}

/* Highlight active form field */

#respond input[type=text], textarea {
  -webkit-transition: all 0.30s ease-in-out;
  -moz-transition: all 0.30s ease-in-out;
  -ms-transition: all 0.30s ease-in-out;
  -o-transition: all 0.30s ease-in-out;
  outline: none;
  padding: 3px 0px 3px 3px;
  margin: 5px 1px 3px 0px;
  border: 1px solid #DDDDDD;
}

#respond input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
textarea:focus {
box-shadow: 0 0 5px rgba(81, 203, 238, 1);
margin: 5px 1px 3px 0px;
border: 2px solid rgba(81, 203, 238, 1);
}

Ecco come appariva il nostro modulo nel tema WordPress Twenty Sixteen dopo le modifiche:

Highlight active comment form field

Utilizzando queste classi, è possibile modificare il comportamento del testo all’interno delle caselle di input. Procederemo a modificare lo stile del testo dei campi nome dell’autore e URL.

#author, #email {
font-family: "Open Sans", "Droid Sans", Arial;
font-style:italic;
color:#1d1d1d;
letter-spacing:.1em;
} 

#url  {
color: #1d1d1d;
font-family: "Luicida Console", "Courier New", "Courier", monospace;
} 

Se si osserva attentamente la schermata sottostante, il carattere del campo del nome e dell’e-mail è diverso da quello dell’URL del sito web.

Input styles for WordPress comment form

È anche possibile modificare lo stile del pulsante di invio del modulo dei commenti di WordPress. Invece di usare il pulsante di invio predefinito, diamogli un po’ di gradiente CSS3 e di box-shadow.

#submit {
background:-moz-linear-gradient(top, #44c767 5%, #5cbf2a 100%);
background:-webkit-linear-gradient(top, #44c767 5%, #5cbf2a 100%);
background:-o-linear-gradient(top, #44c767 5%, #5cbf2a 100%);
background:-ms-linear-gradient(top, #44c767 5%, #5cbf2a 100%);
background:linear-gradient(to bottom, #44c767 5%, #5cbf2a 100%);
background-color:#44c767;
-moz-border-radius:28px;
-webkit-border-radius:28px;
border-radius:28px;
border:1px solid #18ab29;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
font-size:17px;
padding:16px 31px;
text-decoration:none;
text-shadow:0px 1px 0px #2f6627;
} 

#submit:hover {
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #5cbf2a), color-stop(1, #44c767));
background:-moz-linear-gradient(top, #5cbf2a 5%, #44c767 100%);
background:-webkit-linear-gradient(top, #5cbf2a 5%, #44c767 100%);
background:-o-linear-gradient(top, #5cbf2a 5%, #44c767 100%);
background:-ms-linear-gradient(top, #5cbf2a 5%, #44c767 100%);
background:linear-gradient(to bottom, #5cbf2a 5%, #44c767 100%);
background-color:#5cbf2a;
}
#submit:active {
position:relative;
top:1px;
}
Comment form submit button

Portare i moduli di commento di WordPress al livello successivo

Potreste pensare che sia troppo elementare. Beh, dobbiamo iniziare da lì, in modo che tutti possano seguirci.

Potete portare il vostro modulo per i commenti di WordPress a un livello superiore, riorganizzando i campi del modulo, aggiungendo il login sociale, le iscrizioni ai commenti, le linee guida per i commenti, i quicktag e altro ancora.

Aggiungere il login sociale ai commenti di WordPress

Iniziamo con l’aggiunta dei login sociali ai commenti di WordPress.

La prima cosa da fare è installare e attivare il plugin Super Socializer. Per maggiori dettagli, consultate la nostra guida passo passo su come installare un plugin di WordPress.

Dopo l’attivazione, è necessario visitare Super Socializer ” Social Login e selezionare la casella “Abilita Social Login”.

Check box to enable social login

Si apre il pannello delle opzioni di accesso sociale. Per prima cosa, fare clic sulla scheda “Configurazione avanzata”.

Quindi, assicurarsi che la casella “Abilita al modulo di commento” sia selezionata.

Enable social login on comment form

Quindi, fare clic sulla scheda “Configurazione di base”. Qui è possibile scegliere i social network da aggiungere selezionando le caselle nella sezione “Seleziona social network”.

Select social networks for login

Sotto questo punto, il plugin richiederà le chiavi API per connettersi con le piattaforme sociali. È sufficiente fare clic sull’icona del “punto interrogativo” per visualizzare le istruzioni su come ottenerle per ciascuna piattaforma.

Enter social network API keys

Una volta terminato, fare clic sul pulsante “Salva modifiche” per salvare le impostazioni di accesso sociale.

Ora è possibile visitare il proprio sito web per vedere i pulsanti di accesso ai social sopra il modulo dei commenti.

Social login comment form example

Aggiunta del testo della politica dei commenti prima o dopo il modulo di commento

Amiamo tutti i nostri utenti e apprezziamo molto che dedichino qualche minuto a lasciare un commento sul nostro sito. Tuttavia, per creare un ambiente di discussione sano, è importante moderare i commenti.

Per garantire la massima trasparenza, abbiamo creato una pagina dedicata alla politica dei commenti, ma non è possibile inserire questo link nel footer.

Volevamo che la nostra politica dei commenti fosse evidente e visibile per tutti gli utenti che lasciano un commento. Per questo motivo abbiamo deciso di aggiungere l’informativa sui commenti nel nostro modulo di commento di WordPress.

Se volete aggiungere una pagina di politica dei commenti, la prima cosa da fare è creare una pagina WordPress e definire la vostra politica dei commenti (potete rubare la nostra e modificarla per soddisfare le vostre esigenze).

Successivamente, è possibile aggiungere il seguente codice nel file functions.php del tema o in un plugin di snippets di codice.

function wpbeginner_comment_text_before($arg) {
    $arg['comment_notes_before'] .= '<p class="comment-policy"">We are glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our <a href="http://www.example.com/comment-policy-page/">comment policy</a>.</p>';
    return $arg;
}

add_filter('comment_form_defaults', 'wpbeginner_comment_text_before');

Il codice sopra riportato sostituirà il modulo di commento predefinito prima delle note con questo testo. Abbiamo anche aggiunto una classe CSS nel codice, in modo da poter evidenziare l’avviso utilizzando i CSS. Ecco il CSS di esempio che abbiamo utilizzato:

p.comment-policy {
    border: 1px solid #ffd499;
    background-color: #fff4e5;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0px 10px 0px;
    font-size: small;
    font-style: italic;
}

Ecco come appariva sul nostro sito di prova:

Comment policy note

Se si desidera visualizzare il link dopo l’area di testo del commento, utilizzare il codice seguente.

function wpbeginner_comment_text_after($arg) {
    $arg['comment_notes_after'] .= '<p class="comment-policy"">We are glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our <a href="http://www.example.com/comment-policy-page/">comment policy</a>.</p>';
    return $arg;
}

add_filter('comment_form_defaults', 'wpbeginner_comment_text_after');

Non dimenticate di modificare l’URL di conseguenza, in modo che vada alla pagina della politica dei commenti anziché a example.com.

Spostare il campo di testo dei commenti in basso

Per impostazione predefinita, il modulo dei commenti di WordPress visualizza prima l’area di testo del commento e poi i campi nome, e-mail e sito web. Questa modifica è stata introdotta in WordPress 4.4.

Prima di allora, i siti web WordPress mostravano prima i campi nome, e-mail e sito web e poi la casella di testo del commento. Riteniamo che i nostri utenti siano abituati a vedere il modulo dei commenti in quest’ordine, quindi utilizziamo ancora il vecchio ordine dei campi su WPBeginner.

Se si desidera farlo, è sufficiente aggiungere il seguente codice al file functions.php del tema o a un plugin di snippets di codice.

function wpb_move_comment_field_to_bottom( $fields ) {
$comment_field = $fields['comment'];
unset( $fields['comment'] );
$fields['comment'] = $comment_field;
return $fields;
}

add_filter( 'comment_form_fields', 'wpb_move_comment_field_to_bottom');

Consigliamo sempre di aggiungere codice in WordPress utilizzando un plugin di snippets di codice come WPCode. In questo modo è facile aggiungere codice personalizzato senza modificare il file functions.php, senza preoccuparsi di rompere il sito.

Per iniziare, è necessario installare e attivare il plugin gratuito WPCode. Per le istruzioni, consultare questa guida su come installare un plugin di WordPress.

Dopo l’attivazione, andare su Code Snippets ” + Add Snippet dalla dashboard di WordPress.

Da qui, trovare l’opzione “Aggiungi il tuo codice personalizzato (nuovo snippet)” e fare clic sul pulsante “Usa snippet” sotto di esso.

Add new snippet

Quindi, aggiungete un titolo per il vostro snippet all’inizio della pagina, che può essere qualsiasi cosa per aiutarvi a ricordare a cosa serve il codice.

Quindi, incollare il codice di cui sopra nella casella “Anteprima codice” e scegliere “PHP Snippet” come tipo di codice dall’elenco a discesa sulla destra.

Paste code into Code Preview box and select the Code Type

A questo punto, è sufficiente spostare l’interruttore da ‘Inattivo’ ad ‘Attivo’ e fare clic sul pulsante ‘Salva snippet’.

Activate and save snippet in WPCode

Questo codice sposta semplicemente il campo dell’area di testo dei commenti in basso.

Moving comment field to the bottom

Rimuovere il campo del sito web (URL) dal modulo di commento di WordPress

Il campo del sito web nel modulo dei commenti attira molti spammer. Anche se la sua rimozione non fermerà gli spammer e non ridurrà i commenti di spam, sicuramente vi eviterà di approvare accidentalmente un commento con un cattivo link al sito web dell’autore.

Inoltre, ridurrà un campo dal modulo dei commenti, rendendolo più facile e intuitivo. Per saperne di più su questo argomento, consultate il nostro articolo sulla rimozione del campo url del sito web dal modulo dei commenti di WordPress.

Per rimuovere il campo URL dal modulo dei commenti, è sufficiente aggiungere il seguente codice al file functions.php o a un plugin di snippets di codice.

function wpbeginner_remove_comment_url($arg) {
    $arg['url'] = '';
    return $arg;
}
add_filter('comment_form_default_fields', 'wpbeginner_remove_comment_url');

Remove URL field

È possibile seguire gli stessi passaggi della sezione precedente per aggiungere in modo sicuro questo codice in WordPress utilizzando il plugin WPCode.

Aggiungere una casella di controllo per l’iscrizione ai commenti in WordPress

Quando gli utenti lasciano un commento sul vostro sito web, potrebbero voler seguire la discussione per vedere se qualcuno ha risposto al loro commento. Aggiungendo una casella di controllo per la sottoscrizione ai commenti, si consente agli utenti di ricevere notifiche istantanee ogni volta che un nuovo commento appare sul post.

Per aggiungere questa casella di controllo, la prima cosa da fare è installare e attivare il plugin Subscribe to Comments Reloaded. Dopo l’attivazione, è necessario visitare la pagina StCR ” Comment Form per configurare le impostazioni del plugin.

Subscribe to comments checkbox

Per istruzioni dettagliate passo-passo, consultate il nostro articolo su come consentire agli utenti di iscriversi ai commenti in WordPress.

Aggiungere campi extra al modulo di commento di WordPress

Volete aggiungere campi supplementari al vostro modulo di commento di WordPress? Ad esempio, un campo opzionale in cui gli utenti possano aggiungere il loro profilo Twitter?

È sufficiente installare e attivare il plugin WordPress Comments Fields. Dopo l’attivazione, andare alla pagina “Campi per i commenti” e passare alla scheda “Campi per i commenti”.

Add extra fields to comment form

È sufficiente trascinare e rilasciare un campo personalizzato e assegnargli un titolo, una descrizione e un nome di dati.

Una volta terminata l’aggiunta dei campi, non dimenticate di fare clic sul pulsante “Salva tutte le modifiche”.

È ora possibile visualizzare il modulo dei commenti per vedere i campi personalizzati in azione.

Comment form custom fields

I campi personalizzati vengono quindi visualizzati nella moderazione dei commenti e sotto il loro contenuto.

Comment extra fields displayed

Per maggiori dettagli, consultate il nostro tutorial su come aggiungere campi personalizzati al modulo dei commenti in WordPress.

Ci auguriamo che questo articolo vi abbia aiutato a capire come modellare il modulo dei commenti di WordPress per renderlo più divertente per i vostri utenti. Potreste anche voler vedere i nostri consigli per ottenere più commenti sui vostri post su WordPress e le nostre scelte di esperti sui migliori plugin per i social media per WordPress.

Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

111 commentiLascia una risposta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Moinuddin Waheed says

    I have seen many different comments section on websites and wondered why do they differed on appearance although all are using the same wordpress comments.
    having a good looking comments section is necessary for making good user experience while commenting.
    I have a query regarding disqus platform for wordpress comments which I have used for two years.
    is it good idea to continue to use it or is there a better alternative?
    also just curious to know what does wpbeginner uses for comments?

  3. Vera Kofyan says

    Thank you for a great tutorial.
    One thing did not work for me: moving the text area to bottom. I added the script in Code snippets, but nothing changed. Has anything changed since you wrote that?
    Thank you,
    Vera

    • WPBeginner Support says

      The snippet should still work correctly, the theme you are using may have added styling to the comment form that could be changing some things, if you check with the support for your specific theme they can help check and confirm this.

      Admin

  4. Vincent Nyagaka says

    Thank you for guiding us on how to style WordPress form. However I have tried to use almost all the codes, on how to remove the URL field from the comment form but unfortunately, none is working code. Kindly can you give me another code to use

    • WPBeginner Support says

      If none of our recommendations were able to assist, we would recommend reaching out to the support for your specific theme and they should be able to assist with targeting their specific target for your comments.

      Admin

  5. fred says

    Hi, nice tutorial ! but i have a problem to find the location of the right .php to modify the post comments, i’m using oceanwp theme with elementor pro, when i go to the functions.php or comments.php i can’t find any of the command lines, i’v tryed to add your code and nothing happens. so i guess it’s somewhere else but where ?

    • WPBeginner Support says

      If you are using a page builder you would need to reach out to that page builder’s support for how to edit the comment form and what tools are available.

      Admin

    • WPBeginner Support says

      If your theme is not set up that way you would sadly need to modify the theme’s code to do that. As each theme’s code can be very different we do not have a specific guide on how to do that yet.

      Admin

  6. Emma says

    Hi. Great tutorial. I wanted to refrain my users from adding their website url to the comment section, because it causes crashes for some users (no idea why). I succeeded, but now it still says the usual “remember my name, e-mail adres and website for the next time I leave a comment”. Do you know how to fix that?

    • WPBeginner Support says

      You may want to check with your theme’s support and let them know about the crashing and editing that message.

      Admin

  7. Rubel Ahmed says

    Hello

    Nice article and I have used some of your suggestions but I found a code error that needs fixing under ‘Adding Comment Policy Text Before or After Comment Form’.

    You have placed the add filter within the function or otherwise it won’t get executed, it needs to be moved outside of the function.

    Rubel

    • WPBeginner Support says

      Both filters should be outside the function but we will certainly take another look and update if we can see the error :)

      Admin

  8. suvo says

    obviously like your web-site Post Thanks for Shearing. i Read your Blog every day.it very bothersome to tell the reality then again I’ll definitely come back again.Please write more about this topics.

  9. ARPIT says

    The Information you’ve provided here is very good. Nice Tutorial. Thanks for sharing. I was looking for a long time for this.It’s really helping me get more familiar with WordPress!

  10. Hồ Ngọc Thanh says

    I can’t find #respond { }
    #reply-title { }
    #cancel-comment-reply-link { }
    #commentform { }
    #author { }
    #email { }
    #url { }
    #comment
    #submit
    in my wordpress theme?

    • Paulina says

      Hello, thank you for this very useful article. I am interested in adding a text before the button “submit”. In the code that you are providing here: would I need to change the words ‘wpbeginner’ to anything else that is connected to my own site?

      • Akramul Hasan says

        Hello Paulina,
        You can add text or anything before Submit button by using a simple filter hook that works for comments form fields.

  11. Woolker Cherenfant says

    Hi! Great article as usual. But I am wondering how can I change the word “says” in the comment section. I want to translate it into Haitian Creole “di”. Any help with that?

    Thanks in advance.

    —Woolker

  12. Tisha says

    Is it possible to copy the code to blogger?. Because I want to make WordPress style comment in my Blogger blog. Thanks for your help. :)

  13. Mate Hodi says

    Hey!

    Great article! I was looking for a solution to change the “Leave a Reply” part. Do you have any idea how I may change it?

  14. JP says

    Hi
    I love your tutorials! I still have a question though; is it popular to change the greyish background color of the entire comment form to some thing else? Perhaps even to an image instead of a solid color?

  15. Mahesh says

    I’m Loving Your Tuts It is very Easy to Understand and More Useful any Where.

    Thanks For Sharing Sir.

  16. SiRetu says

    Is there any complete tutorial? I mean start from scratch including creating comments.php file from the first time. Thanks, great tutorial as always

  17. Luis Izquierdo says

    I am customizing my wp themes child theme and I was able to place the policy text above the comment form. But it only shows to logged out users. How do I get it to show to Logged in users?

  18. Luca Morelli says

    Hello great tutorial: thanks!

    I keep improving my knowledge about WordPress thanks to your lessons. I have a question (I don’t know much about php): I managed to add the comment policy text before the submit button, but I noticed that if I click “reply” and see your codes, the php output is inside the paragraph tag together with a class named “commentpolicy”. How did you achieve that (e.g. how to style the php output on an HTML webpage with a tag and a class, which can then be styled with CSS)?

    Hopefully I explained it correctly and my question makes sense.

    Again many thanks for all your tutorials.

    Luca

      • Jayanta says

        I have the same question. Trying to clarify a bit.
        I have added your snippet to get the comment policy text before comment field. But This is only some text, no special div class is added for that text. So, I am not able to style it using css (I would like to make the text smaller, or may be put a border-box to it). Please guide us. Hope it makes sense now. Thank you so much.

  19. gift charles says

    Thank you very much for this,i was looking for a long time for a way to make the built in comments look better because i prefer them to other services like facebook comments or disqus

  20. Adnan Bashir says

    As you have noticed, the newest version of WP (4.4) is displaying Name and Email form below Text box, do you have any idea how to revert it to old style (Name and Email box above the Text box) ?
    Thanks

  21. mario says

    Hello, great tutorial !
    But I’d like to know one more thing: is it possible to add a checkbox for the privacy policy? Since wordpress system collect the ip, I want my users to check teh box before sending the message. Any suggestion ? Thank you !

  22. Ramon says

    I would like to have the input comments fields above the comments them self so my customers can leave a comment without the need to scroll all the way down the page.

    Is there an easy way to accomplish this?

    Thank you.

  23. dragons says

    Is there any way to ad an EDIT button for the commenters? So they can fix typos and such? Also what if the site wants to allow commenters the ability to upload images in the comments? Is there a way to do that?

  24. Rick Hellewell says

    Good tutorial. Used it to develop my own customized contact form
    plugin, where I re-define the $args for the comment form fields.

    But it turns out, while testing, that some themes create their own
    ‘textarea’ field, which adds to my ‘textarea’ field, resulting in two
    comment text fields. Not good.

    I have set my add_filter( ‘comment_form_default_fields’…. with a
    higher priority (99) so that it happens later in the ‘page build’ (after
    the theme does it’s comment_form_default_fields), but the duplicates
    comment text boxes are still there. Also tried a priority of 8, and that
    didn’t do it either.

    So, can you think of a generic (works for any theme) that can
    determine if the comment field has already been defined? And, if the
    duplicate is found, remove the one in the theme, so I can replace it
    with mine?

    I understand that the problem is caused by bad coding practices on the theme, but would like to find a workaround.

    Thanks….Rick…

  25. Larisa Frolova says

    Thank you!

    I’ve searched the forums and Google for this, but I’m still a little confused as to what to do. If I just want to change the LOCATION of the comment/reply link that appears on posts, how do I do that? It’s not that I want to make it invisible, or change the wording – I just want it to be at the bottom of a post, not at the top.

    How do I go about doing that for the Twenty-Twelve theme?

  26. lflier says

    Very helpful!

    I’m really liking the Disqus comment system you’re now using. It’s slick and very inviting. I find myself leaving more comments on sites using Disqus.

    But I’m discouraged from using it on my own site by the lack of integration with BuddyPress activity stream. So the more I can do to streamline the native WordPress comment system and make it as inviting as Disqus, the better. Thanks again for your tutorial.

  27. Therese says

    Thank you so much for all this! It’s really helping me get more familiar with WordPress!
    I’ve got the social media logins, I’ve got the border sorted, but now I am totally stuck in trying to find *where* to edit the font for the comment box’s individual boxes.

    I can’t figure it out. :(

    Can you please tell me where exactly to find that? You don’t specify this clearly enough in the tutorial. :)

  28. JG says

    how do I add a required checkbox people have to tick before the form gets submitted? I have tried adding the field in via adding a field under add_filter(‘comment_form_default_fields,) while the field shows the form can still be submitted without ticking the box.

  29. Ann says

    I read through your tutorial… and was wondering if it can be applied to a WordPress site that has a Genesis Framework and Child theme. I am using the Epic Child theme by the way. Thanks for your help.

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.