Created
October 21, 2011 18:26
-
-
Save GaryJones/1304559 to your computer and use it in GitHub Desktop.
Amend location of comments link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'genesis_post_comments_shortcode', 'justins_uber_cool_function' ); | |
/** | |
* Amend the location of the comments link, from #comments to #respond. | |
* | |
* @since ?.?.? | |
* @author Gary Jones | |
* | |
* @param string $output HTML markup - link in a span | |
* @return string Amended HTML markup | |
*/ | |
function justins_uber_cool_function( $output ) { | |
return str_replace( '#comments', '#respond', $output); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment