wpDiscuz - WordPress Comment Plugin
Title before the co...
 
Share:
Notifications
Clear all

Title before the comment part


Anthonywp
Posts: 28
Topic starter
(@anthonywp)
Eminent Member
Joined: 7 months 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

Topic Tags
15 Replies
Asti
Posts: 3567
 Asti
Support
(@asti)
Support member
Joined: 4 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
(@anthonywp)
Joined: 7 months ago

Eminent Member
Posts: 28

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: 4 years ago

Support member
Posts: 3567

@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
(@anthonywp)
Joined: 7 months ago

Eminent Member
Posts: 28

@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: 4 years ago

Support member
Posts: 3567

@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
(@anthonywp)
Joined: 7 months ago

Eminent Member
Posts: 28

@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: 4 years ago

Support member
Posts: 3567

@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
(@anthonywp)
Joined: 7 months ago

Eminent Member
Posts: 28

@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: 4 years ago

Support member
Posts: 3567

@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
(@anthonywp)
Joined: 7 months ago

Eminent Member
Posts: 28

@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
(@anthonywp)
Joined: 7 months ago

Eminent Member
Posts: 28

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: 4 years ago

Support member
Posts: 3567

@anthonywp,

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

Reply
Anthonywp
Posts: 28
Topic starter
(@anthonywp)
Eminent Member
Joined: 7 months ago

@asti,

No change, with the new code.

2021 07 01 20 28 36 Window

Website

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

Support member
Posts: 3567

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
(@anthonywp)
Joined: 7 months ago

Eminent Member
Posts: 28

@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: