Title before the co...
 
Share:
Notifications
Clear all

Title before the comment part

16 Posts
2 Users
1 Likes
1,515 Views
Posts: 32
Topic starter
(@anthonywp)
Trusted Member
Joined: 3 years ago

Hello,

I would like to know if it will be possible one day to put a line (example title of the comment) before the "comment entry" part (large square).

2021 06 25 13 25 14 Window

It is not possible for the moment and I believe that I had already suggested the idea to the team.

Waiting for your return,

Sincerely

15 Replies
Asti
Posts: 7056
 Asti
Support
(@asti)
Illustrious Member
Joined: 6 years ago

Hi @anthonywp,

Please read this FAQ: https://wpdiscuz.com/community/f-a-q/display-leave-a-reply-comment-header/

Reply
11 Replies
(@anthonywp)
Joined: 3 years ago

Trusted Member
Posts: 32

Hello @asti ,
I'm not talking about that. I would like to put a title field before the "COMMENT TEXT FIELD".

Here is the screenshot.

Screenshot 53

Waiting for your return,
Sincerely,

Reply
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 7056

@anthonywp,

Please create a new row (as it is shown in the video below) and leave some example URL. We'll provide some custom JS code for you, based on the class of the element you've created. 

Video: https://www.screencast.com/t/KMxX1VHKBqK

Reply
(@anthonywp)
Joined: 3 years ago

Trusted Member
Posts: 32

@asti,

Here is the link to the article: WEBSITE

Here are the screenshots:

2021 06 26 22 07 42 Window
2021 06 26 22 09 10 Window

Sincerely,

Reply
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 7056

@anthonywp,

You can use the following JS code:

jQuery(document).ready(function(){
     jQuery( ".custom_field_60d788eeaf01f" ).parent().prependTo(".wpd_comm_form");
});

This article should be also helpful for you: https://www.collectiveray.com/add-javascript-to-wordpress

Reply
(@anthonywp)
Joined: 3 years ago

Trusted Member
Posts: 32

@asti 

The code does not work and breaks the site when I add it at the end of the function.php file.

How can I do it ?

Waiting for your return,

Reply
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 7056

@anthonywp,

This article should be also helpful for you: https://www.collectiveray.com/add-javascript-to-wordpress

Don't you check the article I've provided?

The code does not work and breaks the site when I add it at the end of the function.php file.

Never add the JS code in the functions.php file. 

Reply
(@anthonywp)
Joined: 3 years ago

Trusted Member
Posts: 32

@asti 

Thank you very much! I succeeded as I wished.

Only at the presentation level after validation and publication on the site it does not put it on top as I would like, how to do?

Here are the screenshots:

Screenshot 55
Screenshot 56

I still have 2 or 3 forms I will try to do it otherwise I will ask you for some help 🙂

Waiting for your return,

Reply
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 7056

@anthonywp,

Please remove the old code and put the following one: 

jQuery(document).ready(function(){
     jQuery.each(jQuery('.wpd_comm_form'), function () {
        jQuery(this).find('.custom_field_60d788eeaf01f-wrapper').prependTo(jQuery(this))
     });

     jQuery.each(jQuery('.wpd-comment-text'), function () {
        jQuery(this).find('.wpd-bottom-custom-fields').insertAfter(jQuery('.wpd-top-custom-fields', this))
    });
});

Reply
(@anthonywp)
Joined: 3 years ago

Trusted Member
Posts: 32

@asti ,

Toujours pareil, le nouveau code ne change rien de mon côté.

Le titre est toujours sous le commentaire et pas au dessus.

2021 06 29 12 46 02 Window

WEBSITE

Reply
(@anthonywp)
Joined: 3 years ago

Trusted Member
Posts: 32

Message in English

Still the same, the new code does not change anything on my side.

The title is still under the comment and not on top.

2021 06 29 12 46 02 Window

 

Website

Reply
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 7056

@anthonywp,

The code in this post was updated. Please try it. 

Reply
Posts: 32
Topic starter
(@anthonywp)
Trusted Member
Joined: 3 years ago

@asti,

No change, with the new code.

2021 07 01 20 28 36 Window

Website

Reply
2 Replies
Asti
 Asti
Support
(@asti)
Joined: 6 years ago

Illustrious Member
Posts: 7056

This will work if you change the value of the "Comment List Loading Type" option to "Load with page". Otherwise, there isn't any solution. 

Reply
(@anthonywp)
Joined: 3 years ago

Trusted Member
Posts: 32

@asti ,

By going through this modification, we will increase considerably the page load on some articles and therefore the SEO. We cannot do this.

Let's drop it for now. Would it be possible to include this feature in a future update? This would be great.

Thanks again to the support and development team.

Sincerely,

Reply
Share: