About: How to modify the WordPress comment Form, modify wordpress comment form, edit wordpress comment, delete wordpress comment, remove website entry from wordpress comment, remove name from wp comment form, remove name from wordpress comment.
Code Of the comment.php that i had in my theme, here the section marked in red is the “Form” section that needs to be edited.
<!– You can start editing here. –>
<?php if ( have_comments() ) : ?>
<h3 id=”comments”><?php comments_number(‘No Responses’, ‘One Response’, ‘% Responses’ );?> to “<?php the_title(); ?>”</h3>
<ol>
<?php wp_list_comments(‘avatar_size=60′); ?>
</ol>
<div>
<div>
<?php previous_comments_link() ?>
</div>
<div>
<?php next_comments_link() ?>
</div>
</div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if (‘open’ == $post->comment_status) : ?>
<!– If comments are open, but there are no comments. –>
<?php else : // comments are closed ?>
<!– If comments are closed. –>
<p>Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<?php if (‘open’ == $post->comment_status) : ?>
<div id=”respond”>
<h3>
<?php comment_form_title( ‘Leave a Reply’, ‘Leave a Reply to %s’ ); ?>
</h3>
<div> <small>
<?php cancel_comment_reply_link(); ?>
</small> </div>
<?php if ( get_option(‘comment_registration’) && !$user_ID ) : ?>
<p>You must be <a href=”<?php echo get_option(‘siteurl’); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>”>logged in</a> to post a comment.</p>
<?php else : ?>
<form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post” id=”commentform”>
<?php if ( $user_ID ) : ?>
<p>Logged in as <a href=”<?php echo get_option(‘siteurl’); ?>/wp-admin/profile.php”><?php echo $user_identity; ?></a>. <a href=”<?php echo wp_logout_url(get_permalink()); ?>” title=”Log out of this account”>Log out »</a></p>
<?php else : ?>
<p>
<input type=”text” name=”author” id=”author” value=”<?php echo $comment_author; ?>” size=”22″ tabindex=”1″ <?php if ($req) echo “aria-required=’true’”; ?> />
<label for=”author”><small>Name
<?php if ($req) echo “(required)”; ?>
</small></label>
</p>
<p>
<input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” size=”22″ tabindex=”2″ <?php if ($req) echo “aria-required=’true’”; ?> />
<label for=”email”><small>Mail (will not be published)
<?php if ($req) echo “(required)”; ?>
</small></label>
</p>
<p>
<input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” size=”22″ tabindex=”3″ />
<label for=”url”><small>Website</small></label>
</p>
<?php endif; ?>
<!–<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>–>
<p>
<textarea name=”comment” id=”comment” cols=”100%” rows=”10″ tabindex=”4″></textarea>
</p>
<p>
<input name=”submit” type=”submit” id=”submit” tabindex=”5″ value=”Submit Comment” />
<?php comment_id_fields(); ?>
</p>
<?php do_action(‘comment_form’, $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
</div>
<?php endif; // if you delete this the sky will fall on your head ?>
<div style=”clear: both;”></div>
How to: Remove the “Comments are closed Notice” So the Form part is the part of the wordpress comment code that is of our interest to edit. so what all modifications could be made to this comments section. usually when comments are disabled it shows a message on the page as ” <p>Comments are closed.</p> This looks a bit unprofessional, so this needs to be removed, do a ctrl + F and find the section and remove part <p>Comments are closed.</p> and replace with <p> </p>
How to: Edit the Comment Form . Some websites would be of a kind where in the comment form would only require website and name, while some require only name and email, while some wanted to make it simple and just require the name only. Here is the form part and i will break up the highlighted part into 3 name, email and website. Just remove the section from the code that you dont want. simple as that.
Author Name
<p>
<input type=”text” name=”author” id=”author” value=”<?php echo $comment_author; ?>” size=”22″ tabindex=”1″ <?php if ($req) echo “aria-required=’true’”; ?> />
<label for=”author”><small>Name
<?php if ($req) echo “(required)”; ?>
</small></label>
</p>
Author Email
<p>
<input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” size=”22″ tabindex=”2″ <?php if ($req) echo “aria-required=’true’”; ?> />
<label for=”email”><small>Mail (will not be published)
<?php if ($req) echo “(required)”; ?>
</small></label>
</p>
Comment Author website
<p>
<input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” size=”22″ tabindex=”3″ />
<label for=”url”><small>Website</small></label>
</p>
Let me know your thoughts. Hope you enjoyed the tutorial on How to modify the WordPress comment Form
Related Articles You Are Probably Interested In:
Nice Structured and detailed explanation, Thankyou !
Thx Siby for the comment
Nice Structured and detailed explanation, Thankyou !
Thx Siby for the comment
Worked it out seconds after posting
You delete only the text No comments in the below code-
if ( post_password_required() ) : ?>
< ?php _e('Enter your password to view comments.'); ?>
< ?php return; endif; ?>
< ?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
< ?php if ( comments_open() ) : ?>
“>»
< ?php endif; ?>
Hi Joshu, I am new to editing PHP code, and am trying to delete the “No comments” text on the WordPress page. Would you know which code I would need to edit or delete please?
Jessica
Hey Jess !
How are you?
Sorry i could not get back to you in the 6 hrs you posted your question. Infact as you figured it out yourself, the article is self explanatory, its just that you need to edit the php page ive mentioned and ctrl+f the section that says No comments and delete that, Great that it helped.
Cheers, Josh
I am also new in PHP and this tutorial will help me a lot. I would like to thank you for the chance.
Hi every friends,
Did you like play online flash games and nice VIDEO ^_^. OK! If you are interesting with it.
Just do a click http://www.ongamesite.com. Good luck!!!
Internet games,Computer games,Windows games and nice video
I was looking for this solution for some days. I was stuck with this problem. This article will be very useful for me.
It is my great pleasure to visit your website and to enjoy your excellent post here.I like that very much. I can feel that you paid much attention for those articles, as all of them make sense and are very useful. Thanks so much for sharing. I can be very good reader&listener discount cheap jordan shoes , if you are same searching for all to be good.
Expanding your cube space should be your first major purchase in AION kinah. Every class is capable of leveling easily with the gear and weapons collected along the way through quest rewards. Even though you may get a lucky drop that is a perfect upgrade for your class, you will probably reap bigger rewards in the long run by selling it to another, less savvy player.
ts and picking up new ones, secondly, many of the quests in the same areawow powerleveling involve killing or collecting items near the same location, queuing quests will make it easier to get all of them done
Thanks a landlord it! I acquired yet some insight. Life is so colorful, we should be able to live in, such as Korea and honor the planet. Human life is like rivers, slowly flowing, flowing rivers, flowing through the snow, flows through the prairie and ultimately into the sea, return to the embrace of nature, start a new reincarnation. Allow us to feel the meaning of life will come only to those you have those memories http://www.cheap-nikeshox.com/nike-shox-TL1.html
thanks for the stuff. i found the article very much useful.
great tutrial. i was searching for that
Nice Structured and detailed explanation, Thankyou !
Thanks !
thanks for sharing friends, regards
Hi Indam,
Thanks for the kind words. you are welcome.
cheers, joshu
Nice explanation and i am impres
Thanks you verymuch. For the article.
You are welcome, your name is out of my fonts list though
Glad you liked the article.
cheers
Josh
I was looking for this, thanks
Hi Hugo,
Glad it helped you!
Cheers, Josh
thanks for posting the article, im alot wiser now xD
best regards
Thanks for post! it is very helpful information.
I have been checking out a few of your articles and i can state pretty nice stuff. I will surely bookmark your blog.
Nice little write up. Always remember to backup any PHP file you are editing first.
Another thing I do is make a copy of the line. Then, comment out the original and make your changes in the duplicate.
What Rotherham said except I make a backup on my computer then I upload to the server to see how it looks. Seems obvious but if you don’t do it it will eventually cost you in time. Especially if you aren’t an expert.
I am going to show this topic to the novice working in PHP department of my web design company are going to benefit from this detailed explaination and start practicing to enhance their skills. Awesome work Josh!
Hey Kalsoom,
Am glad you liked the little mod. Hope these tips help you all.
Cheers
Josh
thank you for souce code a comment
Awesome post man, I’ll be using it with my future comments. Thanks
thank so much. to sourc code
Hi there, just ran into your web site from mixx. This isn’t not something I would normally read, but I loved your perspective on it. Thanks for creating something worth reading!
Awesome thanks for sharing such a nice post.
Such a fantastic post.i am very impressed thanks for sharing nice post.
Really enjoyable post i have also learn more than enough from this post.
th infant begins to burble month, says “no”, “This,” “will,” then consists of syllables, words like “no-ma-ma” “da-da-da.” Most children, ahead finishing the first year of mortal, disclose “mama” or “dad.” Exciting that the first tidings terminates your baby? If you after to help him, pit oneself against with.
Where are the eyes, nose, mouth? – Require your youngster to be struck by shown the disparate parts of the congress (his own, or to go to criterion a teddy produce) yield command of his hand. Ended while, your toddler starts to do it yourself. Learn the meaning of green words, is also starting to interpret the command.
Read along – of certainly the true reading too untimely, but we start with colorful pictures in the booklets. Show your youngster what he sees in the spitting image (for prototype, “This is a teddy warrant and a dog.” It’s a believable learning the meanings of words that the child begins to indicate in the wink year of life.
Voices of animals – during a pop in to the bedlam or in the countryside, watching the books indicate the juvenile how to “say” animals – cats meowing “miauu” barking dog “hau-hau,” goat matches “meee” etc. You can also mock other sounds – ticking clock, the fit as a fiddle of the locomotive, the tournament of the locomotive, sleds, etc. ruddy is endless.
Or maybe a poem? – Do you remember the rhymes, rhymes, lullabies from my childhood – recall, look in the booklets. Study along or singing. Such fun to develop speech, but also a lad’s imagination. And consequential knowledge – reading from an untimely adulthood instruct in your child to have a passion books. It is nowadays bloody valuable!
Psychologists and neuroscientists agree that the sooner the gambler, perhaps stable from birth. There is simply no uncertainty of teaching the well-known classroom, children ought to be suitably intrigued.
The children are younger, that contain a wiser honour, greater effortlessness of repeated listening and pact the message of sentences – from the context. This is because babies do not come into possession of a transatlantic tongue alongside attractive in the proceeding of the dam tongue. What’s more, into it honourable as their mother tongue. These sterling qualities, combined with the everyday curiosity of children own them to better mastery of diction, which is inveterately English.
What studies express
According to kid experts consequence rostrum show business of learning the innate vocabulary of upon two years of duration and when is the with greatest satisfaction in good time always to start contacting the next language. This is because the youngest mere doubtlessly assimilating contemporary intelligence, they also have the aptitude to learn two languages ??simultaneously. The strength unprejudiced of teaching a tramontane terminology at this length of existence is to promote Wzdecia the broad advancement of the nipper, preparing him to journey catch to know another customs and language as well as fueling the awakening and curiosity. Increasingly, youngsters with a unfamiliar interaction peril begins in the preschool and anciently university period.
Bilingual families
In the epoch of the Internet and traveling the to the max blood of two-or metrical trilingual go on more often. Then we talk nearby lore a imported jargon on the verge of from birth. Just out studies show that children lore to tell in a bilingual family, ripen faster. This constitutes a disclaimer of the theory that early youth bilingualism slows sage circumstance of the toddler, although it happens that children who to gain up bilingual, then start talking. Some psychologists believe a youth has a question with assigning heard statements to that language. Others again, scientists rely upon that the understanding of bilingual children win the gift to twitch between languages, which affects his total cognitive abilities. And thus the results of the tests. Forced to moved to the changing spot of the brain feat more flexibly. This does not wherewithal that bilingual children are more intelligent than their monolingual peers.
Parents of bilingual children basically play up consistency in speaking to a babe in a specific idiom at hand a stepmother or in a finicky situation. Pamietnik niemowlaka Gauge the many advantages of bilingualism, fit prototype, that bilingualism facilitates making up to date friends, because children themselves are more reliable. Shrewd two languages ??is also developing adjustability in dealing with people and teaches self-reliance and resourcefulness of communication, helpful in scholarship more foreign languages. In reckoning, developing bilingualism and respect exercises, as spurt as adorn the vocabulary of a youth who is easier to lead up the “burgess of the world.”
Method is as a lark
By teaching the youngest children a overseas parlance should be worn to the fact that there are no barriers as adults and their percipience is more receptive. Take it and energize it at any evaluate to keep against boredom. Science is frolic and to be thrilled, and also undertaking the development of tongue skills, and openness with, pact, grade pronunciation and inflection, the cleverness to create questions and answers. You can offer your child such as art classes, games, movement activities, music, scholarship rhymes, effective stories or playing theaters, erudition and repeating all the words with which they can clash with in contact with the environment. Composed feel discomfited, in our notion, the individual experience of a descendant has a gargantuan influence on his feeling of the over the moon marvellous and scholarship abilities, so you may lust after to bring into play it.
I just wanted you guys to know that I opened a new blog about seo. I hope you could pay a visit a write a comment or two! Thanks!
I do agree with all of the ideas you’ve presented in your post. They are very convincing and will certainly work. Still, the posts are too short for novices. Could you please extend them a bit from next time? Thanks for the post.
Its a nice way making Webdesign, i still stick to drupal in some cases. Or just use the google.
Good ways to learning Graphic-Design, i still stick to joomla for that kind of things. Or just use the google.
Its a nice way making Webdesign, i still stick to joomla in some cases. Will search it on yahoo.
thank u for nice and usefull info
Paldies par noder?go inform?ciju, a man lieti noeder?s turpm?k.
Well i know lot of web hostings so i can help you
Well there are many ways which we can use for wordpress format and also this types of tip which we can use it.
Be sure to follow the directions exactly when it comes to the amount of oil and gas that you can use together, because often times this can cause major damage to your device.In the event of a major malfunction, check on the internet or use your local yellow pages to find a tool or body shop that specializes in snow blower repair and maintenance. snow
I am a lot a mute reader, however this put up compelled me to info that authentic alone of the proper posts I posit unravel.
Hey very nice website!! Man .. Excellent .. Amazing .. I will bookmark your blog and take the feeds also…I’m happy to find so many useful info here in the post, we need work out more strategies in this regard, thanks for sharing. . . . . .
1000′s Permanent Article Backlinks Guaranteed in 60 Days
As soon as a careful browse I thought it was actually enlightening. I benefit from you taking the effort and time to put on this weblog publish together. I once again discover me personally spending option to much time each studying and leaving comments.
Thank you for sharing excellent informations. Your site is so cool. I’m impressed by the details that you have on this blog. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for more articles. You, my pal, ROCK! I found simply the information I already searched everywhere and just couldn’t come across. What an ideal web-site.
Your site is really cool to me and your topics are very relevant. I was browsing around and came across something you might find interesting. I was guilty of 3 of them with my sites. “99% of blog owners are guilty of these 5 HUGE errors”. http://is.gd/0Ai7HJ You will be suprised how simple they are to fix.
F*ckin’ tremendous things here. I’m very glad to see your article. Thanks a lot and i’m looking forward to contact you. Will you please drop me a e-mail?
I’m all ears. http://www.cep.net.au/forum/member.php?action=profile&uid=21880 http://www.dreaminfosys.com/bbs//view.php?id=eboard&page=1&page_num=20&select_arrange=headnum&desc=&sn=off&ss=on&sc=on&keyword=&no=4936&category= http://www.hanshin.ac.kr/%7Edongmun/bbs/zboard.php?id=news&page=1&page_num=10&select_arrange=headnum&desc=&sn=off&ss=on&sc=on&keyword=&no=2258&category=
I have read some good stuff here. Certainly worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website.
Good details. I’ll be certain to visit often.
this could be a little off topic, but how much protein should an active 170 pound male, wanting to build muscle eat each day?
Hello, there the blog is really nice, i really enjoyed reading your post. Customizing comment box is not easy though but you make it simple by sharing this info.
Great information here, not the easiest thing to do.
I have tried it a few times it did not work for me. But a friend of mine actually got it done for me. thanks for your effort to post all this!
Thank you for your comment!