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

WordPress Yorum Formu Nasıl Şekillendirilir (Nihai Kılavuz)

Editoryal Not: WPBeginner üzerindeki ortak bağlantılardan komisyon kazanıyoruz. Komisyonlar, editörlerimizin görüşlerini veya değerlendirmelerini etkilemez. Editoryal Süreç hakkında daha fazla bilgi edinin.

Web sitenizdeki WordPress yorum formunun stilini değiştirmek mi istiyorsunuz?

Yorumlar, bir web sitesinde kullanıcı etkileşimi oluşturmada önemli bir rol oynar. İyi görünümlü, kullanıcı dostu bir yorum formu, kullanıcıları tartışmaya katılmaya teşvik eder.

Bu makalede, web sitenizdeki etkileşimi artırmak için WordPress yorum formunu nasıl kolayca şekillendireceğinizi göstereceğiz.

Styling WordPress comment form

Başlamadan Önce

WordPress temaları web sitenizin görünümünü kontrol eder. Her WordPress teması, şablon dosyaları, işlev dosyaları, JavaScripts ve stil sayfaları dahil olmak üzere çeşitli dosyalarla birlikte gelir.

Stil sayfaları, WordPress temanız tarafından kullanılan tüm öğeler için CSS kurallarını içerir. Temanızın stil kurallarını geçersiz kılmak için kendi özel CSS’nizi ekleyebilirsiniz.

Bunu daha önce yapmadıysanız, yeni başlayanlar için WordPress’te özel CSS ekleme hakkındaki makalemize bakın.

CSS’nin yanı sıra, WordPress yorum formunuzun varsayılan görünümünü değiştirmek için bazı işlevler eklemeniz de gerekebilir. Bunu daha önce yapmadıysanız, lütfen WordPress’te kod kopyalama ve yapıştırma hakkındaki makalemize bakın.

Bununla birlikte, WordPress yorum formunun nasıl şekillendirileceğine bir göz atalım.

Bu oldukça kapsamlı bir kılavuz olduğundan, kolay gezinme için bir içerik tablosu oluşturduk:

SeedProd Tema Oluşturucu Kullanarak WordPress Yorum Formunu Şekillendirme

Bu yöntem, piyasadaki en iyi WordPress sayfa ve tema oluşturucu eklentisi olan SeedProd ‘u gerektirir.

Kodlama deneyimi olmayan yeni başlayanlar için tavsiye edilir. Ancak bu yöntemin dezavantajı, mevcut WordPress temanızı özel bir tema ile değiştirecek olmasıdır.

Öncelikle SeedProd eklentisini yüklemeniz ve etkinleştirmeniz gerekir. Daha fazla ayrıntı için, bir WordPress eklentisinin nasıl kurulacağına ilişkin adım adım kılavuzumuza bakın.

Not: Tema oluşturucu özelliğine erişmek için en az PRO planına ihtiyacınız olacaktır.

Etkinleştirmenin ardından, özel WordPress temanız için şablonlar oluşturmanız gerekecektir. SeedProd, yerleşik temalarından birini kullanarak bu şablonları kolayca oluşturmanıza olanak tanır.

Ayrıntılı talimatlar için kodlama yapmadan özel bir WordPress temasının nasıl oluşturulacağına ilişkin eğitimimize bakın.

Tema şablonlarınızı oluşturduktan sonra, Tek Yazı şablonunu düzenlemeniz gerekir.

Edit the single post template

Bu, SeedProd tema oluşturucu arayüzünde tek gönderi önizlemesini yükleyecektir. Önizlemenin alt kısmında yorum formu bloğunu göreceksiniz.

Edit your comment form in SeedProd

Yorum formuna tıkladığınızda sol panelde formun özelliklerini göreceksiniz.

Buradan bir yorum notu veya gizlilik politikası ekleyebilir, ayrıca herhangi bir CSS kodu yazmadan yorum formu stilini düzenlemek için Gelişmiş sekmesine geçebilirsiniz.

Advance styling options for comment form in SeedProd

İşiniz bittiğinde, değişikliklerinizi yayınlamak için Kaydet düğmesine tıklamayı unutmayın.

SeedProd, web sitenizdeki herhangi bir öğenin stilini kod yazmadan değiştirmeyi çok kolay hale getirir.

Ancak, bu bir tema oluşturucudur ve zaten beğendiğiniz bir WordPress teması kullanıyor olabilirsiniz. Bu durumda, aşağıdaki ipuçları WordPress’te yorum formu stillerini manuel olarak değiştirmenize yardımcı olacaktır.

WordPress’te Yorum Formu Stilini Değiştirme

Çoğu WordPress temasının içinde comments.php adında bir şablon vardır. Bu dosya blog yazılarınızdaki yorumları ve yorum formlarını görüntülemek için kullanılır. WordPress yorum formu şu fonksiyon kullanılarak oluşturulur: <?php comment_form(); ?>.

Bu işlev varsayılan olarak yorum formunuzu üç metin alanı (Ad, E-posta ve Web Sitesi), yorum metni için bir textarea alanı, GDPR uyumluluğu için bir onay kutusu ve gönder düğmesi ile oluşturur.

Varsayılan CSS sınıflarını değiştirerek bu alanların her birini kolayca değiştirebilirsiniz. Aşağıda WordPress’in her yorum formuna eklediği varsayılan CSS sınıflarının bir listesi bulunmaktadır.

#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

Sadece bu CSS sınıflarını değiştirerek WordPress yorum formunuzun görünümünü ve hissini tamamen değiştirebilirsiniz.

Devam edelim ve birkaç şeyi değiştirmeyi deneyelim, böylece bunun nasıl çalıştığına dair iyi bir fikir edinebilirsiniz.

İlk olarak, aktif form alanını vurgulayarak başlayacağız. O anda etkin olan alanı vurgulamak, formunuzu özel ihtiyaçları olan kişiler için daha erişilebilir hale getirir ve ayrıca yorum formunuzun daha küçük cihazlarda daha güzel görünmesini sağlar.

#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);
}

Değişikliklerden sonra formumuz WordPress Twenty Sixteen temasında bu şekilde görünüyordu:

Highlight active comment form field

Bu sınıfları kullanarak, giriş kutularının içinde metnin nasıl görüneceğine ilişkin davranışı değiştirebilirsiniz. Devam edip yazar adı ve URL alanlarının metin stilini değiştireceğiz.

#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;
} 

Aşağıdaki ekran görüntüsüne yakından bakarsanız, ad ve e-posta alanı yazı tipinin web sitesi URL’sinden farklı olduğunu görürsünüz.

Input styles for WordPress comment form

WordPress yorum formu gönder düğmesinin stilini de değiştirebilirsiniz. Varsayılan gönder düğmesini kullanmak yerine, ona biraz CSS3 gradyanı ve kutu gölgesi verelim.

#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

WordPress Yorum Formlarını Bir Sonraki Seviyeye Taşımak

Bunun çok basit olduğunu düşünüyor olabilirsiniz. Herkesin takip edebilmesi için buradan başlamalıyız.

Form alanlarını yeniden düzenleyerek, sosyal giriş, yorum abonelikleri, yorum yönergeleri, hızlı etiketler ve daha fazlasını ekleyerek WordPress yorum formunuzu bir sonraki seviyeye taşıyabilirsiniz.

WordPress Yorumlarına Sosyal Giriş Ekleme

WordPress yorumlarına sosyal girişler eklemekle başlayalım.

Yapmanız gereken ilk şey Super Socializer eklentisini kurmak ve etkinleştirmektir. Daha fazla ayrıntı için, bir WordPress eklentisinin nasıl kurulacağına ilişkin adım adım kılavuzumuza bakın.

Etkinleştirmenin ardından, Super Socializer ” Sosyal Giriş’i ziyaret etmeniz ve ardından ‘Sosyal Girişi Etkinleştir’ yazan kutuyu işaretlemeniz gerekir.

Check box to enable social login

Bu, sosyal oturum açma seçenekleri panelini getirir. İlk olarak, ‘Gelişmiş Yapılandırma’ sekmesine tıklayın.

Ardından, ‘Yorum formunda etkinleştir’ kutusunun işaretli olduğundan emin olun.

Enable social login on comment form

Ardından, ‘Temel Yapılandırma’ sekmesine tıklayın. Burada, ‘Sosyal Ağları Seçin’ bölümündeki kutuları işaretleyerek eklemek istediğiniz sosyal ağları seçebilirsiniz.

Select social networks for login

Bunun altında, eklenti sosyal platformlarla bağlantı kurmak için API anahtarlarına ihtiyaç duyacaktır. Her platform için bunun nasıl alınacağına ilişkin talimatları görüntülemek için ‘Soru İşareti’ simgesine tıklamanız yeterlidir.

Enter social network API keys

İşiniz bittiğinde, sosyal giriş ayarlarınızı kaydetmek için ‘Değişiklikleri Kaydet’ düğmesine tıklayın.

Artık web sitenizi ziyaret ederek yorum formunuzun üzerindeki sosyal giriş düğmelerini görebilirsiniz.

Social login comment form example

Yorum Formundan Önce veya Sonra Yorum Politikası Metni Ekleme

Tüm kullanıcılarımızı seviyoruz ve sitemize yorum bırakmak için birkaç dakikalarını ayırmalarını gerçekten takdir ediyoruz. Ancak, sağlıklı bir tartışma ortamı yaratmak için yorumları denetlemek önemlidir.

Tam şeffaflığa sahip olmak için bir yorum politikası sayfası oluşturduk, ancak bu bağlantıyı altbilgiye koyamazsınız.

Yorum politikamızın yorum bırakan tüm kullanıcılar için belirgin ve görünür olmasını istedik. Bu nedenle yorum politikasını WordPress yorum formumuza eklemeye karar verdik.

Bir yorum politikası sayfası eklemek istiyorsanız, yapmanız gereken ilk şey bir WordPress sayfası oluşturmak ve yorum politikanızı tanımlamaktır ( bizimkini çalabilir ve ihtiyaçlarınızı karşılayacak şekilde değiştirebilirsiniz).

Bundan sonra, aşağıdaki kodu temanızın functions.php dosyasına veya bir kod parçacıkları eklentisine ekleyebilirsiniz.

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');

Yukarıdaki kod, notlardan önceki varsayılan yorum formunu bu metinle değiştirecektir. Ayrıca koda bir CSS sınıfı ekledik, böylece CSS kullanarak bildirimi vurgulayabiliriz. İşte kullandığımız örnek CSS:

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;
}

Test sitemizde bu şekilde görünüyordu:

Comment policy note

Bağlantıyı yorum metni alanından sonra görüntülemek istiyorsanız, aşağıdaki kodu kullanın.

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');

URL’yi uygun şekilde değiştirmeyi unutmayın, böylece example.com yerine yorum politikası sayfanıza gider.

Yorum Metin Alanını Alta Taşı

WordPress yorum formu varsayılan olarak önce yorum metni alanını, ardından ad, e-posta ve web sitesi alanlarını görüntüler. Bu değişiklik WordPress 4.4’te tanıtıldı.

Bundan önce WordPress web sitelerinde önce ad, e-posta ve web sitesi alanları, ardından da yorum metin kutusu görüntüleniyordu. Kullanıcılarımızın yorum formunu bu sırada görmeye alışkın olduğunu düşündük, bu nedenle WPBeginner’da hala eski alan sırasını kullanıyoruz.

Bunu yapmak istiyorsanız, tek yapmanız gereken aşağıdaki kodu temanızın functions.php dosyasına veya bir kod parçacıkları eklentisine eklemektir.

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');

WordPress’e her zaman WPCode gibi bir kod parçacıkları eklentisi kullanarak kod eklemenizi öneririz. Bu, functions.php dosyanızı düzenlemeden özel kod eklemeyi kolaylaştırır, böylece sitenizi bozma konusunda endişelenmenize gerek kalmaz.

Başlamak için ücretsiz WPCode eklentisini yüklemeniz ve etkinleştirmeniz gerekir. Talimatlar için bir WordPress eklentisinin nasıl kurulacağına ilişkin bu kılavuza bakın.

Etkinleştirmenin ardından WordPress panosundan Code Snippets ” + Add Snippet seçeneğine gidin.

Buradan, ‘Özel Kodunuzu Ekleyin (Yeni Snippet)’ seçeneğini bulun ve altındaki ‘Snippet Kullan’ düğmesine tıklayın.

Add new snippet

Ardından, sayfanın üst kısmına snippet’iniz için bir başlık ekleyin, bu kodun ne için olduğunu hatırlamanıza yardımcı olacak herhangi bir şey olabilir.

Ardından, yukarıdaki kodu ‘Kod Önizleme’ kutusuna yapıştırın ve sağdaki açılır listeden kod türü olarak ‘PHP Snippet’i seçin.

Paste code into Code Preview box and select the Code Type

Bundan sonra, anahtarı ‘Etkin Değil’den ‘Etkin’e getirin ve ‘Snippet’i Kaydet’ düğmesine tıklayın.

Activate and save snippet in WPCode

Bu kod sadece yorum metin alanı alanını en alta taşır.

Moving comment field to the bottom

WordPress Yorum Formundan Web Sitesi (URL) Alanını Kaldırma

Yorum formundaki web sitesi alanı çok sayıda spamcının ilgisini çekmektedir. Bu alanı kaldırmak spam göndericileri durdurmayacak ve hatta spam yorumları azaltmayacak olsa da, sizi yanlışlıkla kötü yazar web sitesi bağlantısı içeren bir yorumu onaylamaktan kesinlikle kurtaracaktır.

Ayrıca yorum formundaki bir alanı azaltarak daha kolay ve kullanıcı dostu hale getirecektir. Bu konu hakkında daha fazla bilgi için WordPress yorum formundan web sitesi url alanını kaldırma makalemize bakın.

Yorum formundan URL alanını kaldırmak için aşağıdaki kodu functions.php dosyanıza veya bir kod parçacıkları eklentisine eklemeniz yeterlidir.

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

Remove URL field

WPCode eklentisini kullanarak bu kodu WordPress’e güvenli bir şekilde eklemek için önceki bölümdeki adımları takip edebilirsiniz.

WordPress’te Yorumlara Abone Ol Onay Kutusu Ekleme

Kullanıcılar web sitenizde bir yorum bıraktıklarında, birisinin yorumlarına yanıt verip vermediğini görmek için o konuyu takip etmek isteyebilirler. Yorumlara abone ol onay kutusu ekleyerek, kullanıcıların gönderide yeni bir yorum göründüğünde anında bildirim almalarını sağlarsınız.

Bu onay kutusunu eklemek için yapmanız gereken ilk şey Subscribe to Comments Reloaded eklentisini yüklemek ve etkinleştirmektir. Etkinleştirmenin ardından, eklenti ayarlarını yapılandırmak için StCR ” Comment Form sayfasını ziyaret etmeniz gerekir.

Subscribe to comments checkbox

Adım adım ayrıntılı talimatlar için WordPress’te kullanıcıların yorumlara abone olmasına nasıl izin vereceğinize ilişkin makalemize bakın.

WordPress Yorum Formuna Ekstra Alanlar Ekleme

WordPress yorum formunuza ekstra alanlar eklemek ister misiniz? Örneğin, kullanıcıların Twitter adreslerini ekleyebilecekleri isteğe bağlı bir alan?

WordPress Comments Fields eklentisini kurun ve etkinleştirin. Etkinleştirdikten sonra, ‘Yorum Alanları’ sayfasına gidin ve ‘Yorum Alanları’ sekmesine geçin.

Add extra fields to comment form

Özel bir alanı sürükleyip bırakmanız ve ona bir başlık, açıklama ve veri adı vermeniz yeterlidir.

Alanları eklemeyi tamamladıktan sonra, ‘Tüm değişiklikleri kaydet’ düğmesine tıklamayı unutmayın.

Artık eylemlerdeki özel alanları görmek için yorum formunuzu görüntüleyebilirsiniz.

Comment form custom fields

Özel alanlar daha sonra yorum moderasyonunda ve yorum içeriğinin altında görüntülenir.

Comment extra fields displayed

Daha fazla ayrıntı için WordPress’te yorum formuna özel alanların nasıl ekleneceğine ilişkin eğitimimize bakın.

Umarız bu makale WordPress yorum formunu kullanıcılarınız için daha eğlenceli hale getirmeyi öğrenmenize yardımcı olmuştur. WordPress blog yazılarınıza daha fazla yorum almak için ipuçlarımızı ve WordPress için en iyi sosyal medya eklentileri uzman seçimlerimizi de görmek isteyebilirsiniz.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Açıklama: İçeriğimiz okuyucu desteklidir. Bu, bazı bağlantılarımıza tıklarsanız komisyon kazanabileceğimiz anlamına gelir. WPBeginner'ın nasıl finanse edildiğini, neden önemli olduğunu ve nasıl destek olabileceğinizi görün. İşte editoryal sürecimiz.

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.

Ultimate WordPress Araç Kiti

Araç setimize ÜCRETSİZ erişim sağlayın - her profesyonelin sahip olması gereken WordPress ile ilgili ürün ve kaynaklardan oluşan bir koleksiyon!

Reader Interactions

115 yorumBir Cevap Bırakın

  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. Dayo Olobayo says

    Thanks for taking out the time to put this article together. I used the code snippet for removing the website url but I noticed it doesn’t working well here. Reason why I said that is because it only worked on 2 post but other posts on my website still has the URL box in the comment section.

    Am I the one not getting it right please? Also, do I need to replace the “wpbeginner” in the code to my domain name?

    • WPBeginner Support says

      You may want to check with your theme to see if they have something in their styling that could be overriding the standard styling. You do not need to remove wpbeginner from the code for it to work. :)

      Yönetici

  3. Jiří Vaněk says

    Thanks for the tutorial using Seed Prod. I am currently using WP Discuz and I am quite happy with it. However, for smaller sites this form is much more elegant with Seed Prod. The instructions are quite long but I will try it on my test site where I have Seed Prod installed. Thanks for a great and really detailed tutorial.

  4. 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?

  5. 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.

      Yönetici

  6. 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.

      Yönetici

  7. 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.

      Yönetici

    • 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.

      Yönetici

  8. 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.

      Yönetici

  9. 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 :)

      Yönetici

  10. 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.

  11. 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!

  12. 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.

  13. 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

  14. 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. :)

  15. 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?

  16. 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?

  17. 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

  18. 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?

  19. 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.

  20. 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

  21. 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

  22. 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 !

  23. 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.

  24. 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?

  25. 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…

  26. 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?

  27. 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.

  28. 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. :)

  29. 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.

Bir Cevap Bırakın

Yorum bırakmayı seçtiğiniz için teşekkür ederiz. Lütfen tüm yorumların yorum poli̇ti̇kasi uyarınca denetlendiğini ve e-posta adresinizin yayımlanmayacağını unutmayın. Ad alanında anahtar kelime KULLANMAYIN. Kişisel ve anlamlı bir sohbet edelim.