• 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

Change the text of [post_comments]

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 › Change the text of [post_comments]

This topic is: not resolved

Tagged: comments

  • This topic has 3 replies, 3 voices, and was last updated 8 years, 11 months ago by Andrés.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 5, 2017 at 9:28 am #200586
    Andrés
    Member

    Hi,
    I want to change the text of [post_comments]. Instead of "- # comments" I want "# font awesome icon". (http://fontawesome.io/icon/comments-o/)

    How can I do that? Can you help me?

    Thank you 😉

    http://www.yourmedlife.com/blog
    February 5, 2017 at 12:25 pm #200593
    Brad Dalton
    Participant

    You have at least 2 options:

    1. You can use the genesis post info filter with modified attributes

    Or

    2. Modify using the genesis_post_comments_shortcode filter.


    Tutorials for StudioPress Themes.

    February 5, 2017 at 12:46 pm #200594
    Victor Font
    Moderator

    You can pass the following as attributes to the post_comments shortcode:

    more (text when there is more than 1 comment, use % character as placeholder for actual number, default is '% Comments')
    one (text when there is exactly one comment, default is '1 Comment')
    zero (text when there are no comments, default is 'Leave a Comment')

    The shortcode would look like this:

    [post_comments more='% <i class="fa fa-comments-o" aria-hidden="true"></i>' one='1 <i class="fa fa-comments-o" aria-hidden="true"></i>' zero='Leave a <i class="fa fa-comments-o" aria-hidden="true"></i>']


    Regards,

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

    February 5, 2017 at 6:03 pm #200610
    Andrés
    Member

    Thank you all 😉

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

© 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