• 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

How to I control the comment box items?

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 › Design Tips and Tricks › How to I control the comment box items?

This topic is: not resolved

Tagged: comments

  • This topic has 7 replies, 2 voices, and was last updated 9 years, 8 months ago by dave_s.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • February 12, 2013 at 11:56 pm #20019
    theMikeD
    Participant

    Hi there,

    I'd like to change a few things about the comment box and I can't determine the correct way to do it. Here are the changes I'd like to make.

    1. The comment author is followed by "says:". I found code to removeĀ theĀ "says" part but the colon is still there. I see in genesis/lib/structure/comments.php that it appears that it is hardcoded. The offending code is on line 184. I don't see that any of it is wrapped in a filter or a hook. Basically I just want it to be "Name" nothing else.

    2. I'd like to change the format of the date, but again I see no filters or hooks. This time check out line 188. What I want is just the date, no time.

    This would take 1 minute if I edit the genesis code directly, butI'd rather not do that! Can anyone set me straight here?

    ...Mike

    February 13, 2013 at 12:03 am #20024
    theMikeD
    Participant

    Maybe the only way is to copy out the genesis_comment_callback() function into my own functions.php, rename it, modify it to my needs, and then run a filter on genesis_comment_list_args to replace the callback entry with my custom one? That seems a bit heavy handed, but perhaps thats the only way. Is that considered correct wrt genesis code practice?

    February 23, 2013 at 2:14 pm #22438
    theMikeD
    Participant

    OK, I guess that is the solution. This can be marked as resolved.

    July 1, 2013 at 9:52 am #48688
    dave_s
    Participant

    I've been trying to do the same with regard to the 'Says:' element.

    Used the snippet to remove 'says' but still left with the colon.

    Is it possible to remove the colon or is Mikes method the only solution?

    July 2, 2013 at 3:46 am #48798
    dave_s
    Participant

    Anyone?

    July 3, 2013 at 3:23 am #48940
    dave_s
    Participant

    I take it that's a no then!

    July 3, 2013 at 8:18 am #48961
    theMikeD
    Participant

    Dave, I never found a way. I had to toss the entire thing and re-do it for the sake of one colon. Dumb, but there you are.

    July 3, 2013 at 1:52 pm #49046
    dave_s
    Participant

    Thanks Mike, appreciate the reply.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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