Notifications
Clear all

How to add external link in comment form?

9 Posts
2 Users
0 Likes
1,368 Views
(@cnpatel)
Active Member
Joined: 6 years ago
Posts: 18
Topic starter  

So that person who comment can first know basic information of that topic

Capture

   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5872
 

Hi cnpatel,

I'm sorry, but I don't follow you. Please explain more in detail what you mean. 


   
ReplyQuote
(@cnpatel)
Active Member
Joined: 6 years ago
Posts: 18
Topic starter  

See image

Capture2

   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5872
 

Hi  cnpatel,

put this PHP code in your current active theme's functions.php file

add_action('comment_form_after','print_my_html');
function print_my_html(){
?>
<div> <!-- pass HTML code here--> </div>
<?php
}
code

   
ReplyQuote
(@cnpatel)
Active Member
Joined: 6 years ago
Posts: 18
Topic starter  

It worked, but I want to add link in the form, not after the form. 


   
ReplyQuote
(@cnpatel)
Active Member
Joined: 6 years ago
Posts: 18
Topic starter  

So that it can also appear in reply box.

Capture3

   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5872
 

I'm really sorry, but it is not possible yet. 

We'll take this into consideration to find some solution for you. 


   
ReplyQuote
(@cnpatel)
Active Member
Joined: 6 years ago
Posts: 18
Topic starter  

You can do it by adding HTML form field named 'Form Description' here.

Capture4

   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5872
 

Hi cnpatel,

We've already added this in our to-do list. We'll add it in the future releases. 


   
ReplyQuote
Share:
Scroll to top