Tagged: comment, comment form, quote, reply
-
AuthorPosts
-
November 21, 2015 at 8:25 pm #540234November 21, 2015 at 10:05 pm #540258
Hey COLORIT!
It is some advanced modifications including modyfing multiple files.
You can find here: https://wordpress.org/plugins/wp-comment-remix/
that plugin. have you tried it, it is an easier process.Let us know
Best regards,
BasilisNovember 22, 2015 at 7:56 pm #540416Thanks, but hat plugin has not been updated since over 2 years – not a good solution ;-)
Any suggestion on base of the link I posted above, how to modify what ENFOLD files?
Perhaps on base of the suggested code there, you can point in in the right direction (what files to modify) and perhaps I get it for my own?
Thanks.November 23, 2015 at 5:57 pm #541057Hi!
Please try adding following code to Functions.php file in Appearance > Editor
function add_custom_tooltip(){ ?> <script> jQuery(window).load(function(){ /*Add Quote Comment Feature*/ jQuery('.comment-reply-link').each(function(){ var copy_reply_link = jQuery(this).html(); jQuery(this).append(copy_reply_link); jQuery(this).children('.comment-reply-link:last-child').addClass('quote-link').html('Quote'); }); jQuery('.quote-link').on('click',function(){ //Find the content var comment_content=jQuery(this).parent().parent().find('p').html(); //Add Blockquote to the textarea jQuery('textarea#comment').html('<blockquote>'+comment_content+'</blockquote>'); }); }); </script> <?php } add_action('wp_footer', 'add_custom_tooltip');
Cheers!
YigitNovember 23, 2015 at 7:48 pm #541134thank you, Yigit, but this codesnippet just adds a double reply link, but does not “quote” the comment to which someone would like to answer. Any idea?
(site not live)
November 26, 2015 at 11:30 pm #543440Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
a.quote-link { margin-left: 10px; }
and change the code in Functions.php file to following one
function add_custom_tooltip(){ ?> <script> jQuery(window).load(function(){ jQuery('.comment-reply-link').insertAfter('.comment-reply-link'); jQuery('.comment-reply-link:last-child').addClass('quote-link').html('Quote'); jQuery('.quote-link').on('click',function(){ var comment_content=jQuery(this).parent().parent().find('p').html(); jQuery('textarea#comment').html('<blockquote>'+comment_content+'</blockquote>'); }); }); </script> <?php } add_action('wp_footer', 'add_custom_tooltip');
Regards,
YigitFebruary 18, 2016 at 5:56 pm #585542Thank you, Yigit, but I still have twice the link “Antworten” (= reply):
http://screencloud.net/v/24npand:
with each “quoted” comment I get a new link “Antworten” (reply), this links adds itself up the more I quote a comment:
http://screencloud.net/v/u9u2February 21, 2016 at 6:50 am #586588Hey!
Please remove the modification then use this plugin instead: https://wordpress.org/plugins/quote-comments/
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.