• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Html5 comments section

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Html5 comments section

This topic is: resolved
  • This topic has 3 replies, 2 voices, and was last updated 12 years, 11 months ago by Gary Jones.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 30, 2013 at 2:06 pm #59759
    sundance
    Participant

    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/
    September 1, 2013 at 2:39 pm #60087
    Gary Jones
    Member

    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:

    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.community/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' );
    }
    

    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

    September 1, 2013 at 2:47 pm #60089
    sundance
    Participant

    Thanks Garyl
    that works great you can see it here

    http://www.mepanorama.com/335222/الحرب-العال?…ية-الثالثة-تطرق-الابواب-و/#axzz2dfyVHnJi

    September 1, 2013 at 2:53 pm #60095
    Gary Jones
    Member

    Excellent. Closing this thread.


    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Html5 comments section’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble