Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #540234

    Hi,

    how can I add a “quote” link next to the “Leave a reply” link in the comment section »», so that the users can quote the comment of another user.

    Like this: http://screencloud.net/v/pdPK

    I have googled for that, but only found this trick here, but I don’t know which ENFOLD theme files I need to edit for it.

    Could you please help me out?
    Thank you!

    #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,
    Basilis

    #540416

    Thanks, 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.

    #541057

    Hi!

    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!
    Yigit

    #541134

    thank 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)

    #543440

    Hey!

    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,
    Yigit

    #585542

    Thank you, Yigit, but I still have twice the link “Antworten” (= reply):
    http://screencloud.net/v/24np

    and:
    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/u9u2

    #586588

    Hey!

    Please remove the modification then use this plugin instead: https://wordpress.org/plugins/quote-comments/

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.