Skip to content

Instantly share code, notes, and snippets.

@GaryJones
Created October 21, 2011 18:26
Show Gist options
  • Save GaryJones/1304559 to your computer and use it in GitHub Desktop.
Save GaryJones/1304559 to your computer and use it in GitHub Desktop.
Amend location of comments link
<?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