Html5 comments section

Community Forums Forums General Discussion Html5 comments section

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Gary Jones 1 year ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #59759

    sundance
    Participant
    Post count: 65

    Before converting to htlm5 I use to have this line in /genesis/lib/structure/comments.php

    <div class=”reply”>
    <?php comment_reply_link( array_merge( $args, array( ‘depth’ => $depth, ‘max_depth’ => $args['max_depth'] ) ) ); ?>
    <?php $thumbsupid = “comm_”.get_comment_ID(); echo ThumbsUp::item($thumbsupid)->options(‘align=left’);?>
    </div>

    that will put thumbsup in comments reply , now after converting its not working anymore, any thought ?

    http://www.mepanorama.com/180166/
    #60087

    Gary Jones
    Moderator
    Post count: 686

    Straight to the point – if you’re hacking Genesis, then you’re doing it wrong. There’s no excuse for this, and the core Genesis files warn about not doing it, since every update will wipe out your changes.

    Try adding the following to your child theme functions.php:

    [php]
    add_action( ‘genesis_after_comment’, ‘prefix_add_thumbsup’ );
    /**
    * Add ThumbsUp just after the reply link for each comment.
    *
    * @author Gary Jones, Gamajo Tech
    * @link http://www.studiopress.com/forums/topic/html5-comments-section/
    */
    function prefix_add_thumbsup() {
    // If plugin doesn’t appear to be active, abort
    if ( ! method_exists( ‘ThumbsUp’, ‘item’ ))
    return;

    $thumbsupid = ‘comm_’ . get_comment_ID();
    echo ThumbsUp::item( $thumbsupid )->options( ‘align=left’ );
    }
    [/php]


    Changes in Genesis 2.1 – the ultimate guide to every single change in Genesis Framework 2.1 and 2.1.1 (all 88 of them!) | @GaryJ

    #60089

    sundance
    Participant
    Post count: 65
    #60095

    Gary Jones
    Moderator
    Post count: 686

    Excellent. Closing this thread.


    Changes in Genesis 2.1 – the ultimate guide to every single change in Genesis Framework 2.1 and 2.1.1 (all 88 of them!) | @GaryJ

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

The topic ‘Html5 comments section’ is closed to new replies.