• 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

Remove comment author link

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 › Remove comment author link

This topic is: not resolved

Tagged: Author, comment, link, magazine

  • This topic has 7 replies, 4 voices, and was last updated 8 years ago by smiley.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • April 12, 2017 at 9:53 am #204680
    mario01
    Member

    Hi, i have Magazine Pro Theme and i want to delete comment author link.

    I use many different guide:

    http://wpsquare.com/remove-comment-author-website-link-wordpress/

    How to Remove the WordPress Comment Author Link

    I add some code in functions.php, but these method doesn't work

    I have still remove the field link when someone post a comment, but now i want to remove the comment author link.

    How to resolve it?

    Thanks

    April 12, 2017 at 10:42 am #204683
    mario01
    Member

    For example, i want to remove the link on "Mr WordPress".

    April 12, 2017 at 1:03 pm #204692
    mario01
    Member

    i have a solution

    In genesis > lib > structure > comments.php

    Find the following line:

    if ( ! empty( $url ) && 'http://' !== $url ) {$author = sprintf( '%s', esc_url( $url ), genesis_attr( 'comment-author-link' ), $author );}

    And replace it with this new:

    if ( ! empty( $url ) && 'http://' !== $url ) {$author = sprintf($author );}

    It works, but this is a correct way? If i update genesis in future, it will return as default?

    April 12, 2017 at 1:23 pm #204693
    Victor Font
    Moderator

    You should never change code in the Genesis Framework. Updates will overwrite your changes. The proper way is to do something like this in functions.php:

    add_filter( 'genesis_comment_list_args', 'my_default_list_comments' );
    function my_default_list_comments($args) {
    
    	$args['callback'] = genesis_html5() ? 'my_html5_comment_callback' : 'genesis_comment_callback';
    
    	return $args;
    }
    
    function my_html5_comment_callback() {
    
    /* place your new callback function here */
    
    }

    Regards,

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

    April 12, 2017 at 1:37 pm #204694
    mario01
    Member

    Thank you Victor! Can you explain me how i can add it in my functions.php? I don't understand very well the function that you write..

    If you can write the final code that i can add to functions.php..

    April 12, 2017 at 8:14 pm #204699
    carasmo
    Participant

    WordPress has a filter for the author link in comments. Does not work on imported comments. Genesis filters don't duplicate.

    /**  
     * 
     * Removes Comment Author Link
     * 
     */
    function prefix_remove_comment_author_link( $return, $author, $comment_ID ) {
    	return $author;
    }
    add_filter( 'get_comment_author_link', 'prefix_remove_comment_author_link', 10, 3 );
    

    Genesis Theme Customization and Help

    June 12, 2017 at 5:39 am #207639
    smiley
    Participant

    The Genesis Simple Edits plugin will do that. Log in to studiopress.com & check this link: https://my.studiopress.com/documentation/genesis-simple-edits/plugin-use/edit-entry-meta-and-footer-info-with-genesis-simple-edits/

    June 12, 2017 at 5:44 am #207640
    smiley
    Participant

    Genesis Simple Edits plugin will do that. Log into My Studiopress & search Genesis Simple Edits plugin.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘General Discussion’ 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

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