add_filter( 'get_comments_link', function( $link, $post_id )
{
return get_permalink( $post_id ) . '#disqus_thread';
}, 10, 2 );
Where i have to put this filter? I tried within theme/functions.php but was incorrect.Thanks for your response Vanluda
Hi,
In my case if it worked, but the icon showing before disappears and only displays text
<a href="<?php comments_link(); ?>" class="comments"><i class="fa fa-comments-o"></i> <?php echo get_comments_number(); ?></a>
Before
http://s10.postimg.org/ajfmzs2zt/before.jpg
(Icon #Comments = icon 2)
After
#Comments Comments = 10 Comments (icon disappears)
http://s10.postimg.org/j0f5ap7op/after.jpg
This should happen?
Leandro thanks for join us,
the problem is not that you mention but,
in my homepage there is a slider which has a link button for each post comments.
Once discus system is activated that button does not work.
Hi, I started researching and…
First:
It is better Disqus Conditional Loady, install it and configure it so (MAKE A BACKUP OF YOUR WEBSITE)
Disqus Settings;
http://s20.postimg.org/kzvu1inm5/Disqus_Settings.jpg
Advanced Features;
http://s20.postimg.org/6fer6osnh/Advanced_Features.jpg
Second:
On https://YOUR_WEB_ID.disqus.com/admin/settings/
Configure it so…
Settings Disqus;
http://s20.postimg.org/gbfu6byfh/Disqus_Moderation.jpg
Finally, verify copy and paste this code into functions.php of your current theme
// #coments to #disqus_thread on Comments Section
add_filter( 'get_comments_link', function( $link, $post_id )
{ return get_permalink( $post_id ) . '#disqus_thread'; }, 10, 2 );
I hope that works for you! Greetings.
Thanks for help Leandro i tried everything above and the link works correctly!!!