Hello WP Discuz Support Team / Community Members,
I hope this message finds you well. I am currently using the WP Discuz plugin on my WordPress website to manage comments, and I have encountered an issue related to the "Copy to Clipboard" functionality.
The "Copy to Clipboard" functionality works well initially, but I have noticed that the associated icon is not displaying for dynamically loaded comments when the AJAX functionality is enabled. I have tried several solutions, using event delegation and MutationObserver, but none have resolved the issue.
Could you please provide guidance on how to ensure that the "Copy to Clipboard" icon shows up for comments loaded via AJAX? Are there specific hooks or events that I should be leveraging to handle dynamically loaded content?
Any assistance or insights you can provide would be greatly appreciated.
Thank you in advance for your support.
Best regards,
Ibrahim
Hi Ibrahim,
We don't see any issues with the wpDiscuz copy comment functionality. Please refer to the video linked below for a demonstration: https://monosnap.com/file/u7qjGRi7XhxWxiyKi9cBVmUAe5maxY
Simply the icon you're using doesn't belong to the wpDiscuz plugin:
It appears that either the plugin has been customized, or there might be another plugin responsible for adding it. The wpDiscuz 'Copy Comment' icon should normally appear on comment hover, as demonstrated in the video.
Hi Asti,
This is the link to Copy to Clipboard plugin page.
Please help if possible, it will be much appreciated.
Thanks
Kind Regards,
Ibrahim