• 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

Where to find Essence Pro's genesis_comment_callback function?

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 › Where to find Essence Pro's genesis_comment_callback function?

This topic is: resolved

Tagged: comments, comments.php, genesis_html5_comment_callback, get_comment_author

  • This topic has 3 replies, 4 voices, and was last updated 7 years, 7 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 17, 2018 at 11:46 pm #221761
    lvvvvvl
    Participant

    Hey,

    I'm trying to customize the look of the html output for my Essence Pro theme. Specifically, I'm interested in adding a badge/symbol next to the post author's comments. I know how to edit the css look, but I wanted to also add a symbol or title next to the post authors name, something like "Post Author" or a star.

    I found this tutorial by https://halfelf.org/2013/customizing-comments-genesis/ Mika which more or less describes something similar where he mentions I need to copy and paste the entire output of my comments callback and modify what I want.

    I'm trying to figure out where that whole chunk of code is within the essence pro files but can't seem to find it.

    Does anyone know where it's located?

    Thank you

    July 18, 2018 at 4:20 am #221762
    Terry
    Member

    Morning lvvvvvl,

    You can add it to the end of your theme functions.php file.

    If you use that reference, you'll want to edit the line in the mysite_comment_callback
    from

    <?php echo get_avatar( $comment, $size = $args['avatar_size'] ); ?>
    

    to
    whatever size you want (ie, 201) like below

    <?php echo get_avatar( $comment, 201 ); ?>
    

    Let us know how you make out.

    Warm Regards,
    Terry

    July 18, 2018 at 9:38 am #221784
    Victor Font
    Moderator

    The tutorial you found is outdated. The genesis_comment_callback is not used with HTML5 themes. The correct callback for HTML5 themes is genesis_html5_comment_callback. You can find the function in the genesis/lib/structure/comments.php file around line 307.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    July 19, 2018 at 3:06 am #221795
    Brad Dalton
    Participant

    1. Another solution would be to use the get_comment_author filter https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/comment-template.php#L46

    get_comment_author is used in the genesis_html5_comment_callback function.

    Or

    2. Pure CSS which enables you to add a icon or text before or after the post authors name in the comments.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Where to find Essence Pro's genesis_comment_callback function?’ 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