• 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

Metro Pro – Comments Title fucntions.php snippet breaks code

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 › Metro Pro – Comments Title fucntions.php snippet breaks code

This topic is: not resolved

Tagged: comments text, leave a reply, Metro Pro

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 4 months ago by ATS.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 3, 2015 at 3:21 am #143011
    ATS
    Participant

    Hi,

    Task is simple: in Metro Pro theme to change comments text 'LEAVE A COMMENT' to something else.
    (And I am not using Simple Edits plugin...)
    Insertion of this snippet below into functions.php, breaks the file making the whole web-site showing white screen. Need to reload original functions.php via FTP every time I try to insert the snippet.
    Would appreciate a working solution.

    This is the snippet I use from recommended here: http://my.studiopress.com/snippets/comments/

    
    //* Modify the comment link text in comments
    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter( $post_info ) {
    return '[post_comments zero="Leave a Comment" one="1 Comment" more="% Comments"]';
    } 
    http://iwilldothistoday.com
    March 3, 2015 at 10:46 am #143054
    Victor Font
    Moderator

    There's nothing wrong with the snippet code. I just copied and pasted it into the Metro Pro functions.php in my local environment and it works fine. Make sure the code in you file is using straight quotes as opposed to typographer's quotes. Depending on the editor you use, sometimes quotes won't copy over correctly.


    Regards,

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

    March 6, 2015 at 4:14 am #143414
    ATS
    Participant

    Thank you Victor!

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