How to append the "Leave a Comment" byline link?

Community Forums Forums Design Tips and Tricks How to append the "Leave a Comment" byline link?

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  gcarswell 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11073

    gcarswell
    Participant
    Post count: 22

    I’m trying to connect the “Leave a comment” link in the byline to Disqus using these instructions.  I’ve got the Disqus js installed for this, but can’t find where the Genesis News theme equivalent of this part would be:

     

    Once that’s added you simply have to find where the WordPress “View Comments” link is displaying on your post pages and append #disqus_thread to the href attribute at the end of your link. For example:
    <a href="<?php the_permalink(); ?>#disqus_thread">View Comments</a>

     Anyone know where that's kept?

    #11091

    Brian Bourn
    Participant
    Post count: 98

    You will need to run a filter in your functions.php file. Be sure you are not using the Genesis Simple Edits plugin.

    Try this:
    [php]//***Customize the Post Info**/
    add_filter( ‘genesis_post_info’, ‘bourncreative_post_info_filter’ );
    function bourncreative_post_info_filter( $post_info ) {

    return ‘[post_date] | By [post_author_posts_link] | <a href="’ . get_permalink() . ‘#disqus_thread">View Comments</a>’;
    }[/php]


    Bourn Creative | bourncreative.com | Twitter

    #11096

    gcarswell
    Participant
    Post count: 22

    Worked like  a charm thanks Brian!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘How to append the "Leave a Comment" byline link?’ is closed to new replies.