Editing post comment link
-
I’m editing the Vortex theme, and through search I found how to move the comments link from under the post title to the post footer. My problem is that there is a comma before the link. I searched the php code but I’m not sure which comma to delete
function vortex_post_comments() { if ( ( ! comments_open() || post_password_required() ) ) { return; } ob_start(); comments_number( __( 'Leave a Comment', 'vortex' ), __( '1 Comment', 'vortex' ), __( '% Comments', 'vortex' ) ); $comments = ob_get_clean(); /** Output */ $comments = sprintf( '<a href="%s">%s</a>', esc_url( get_comments_link() ), $comments ); $output = sprintf( '%2$s<span class="comments-link">%1$s</span>', $comments, vortex_entry_meta_sep() ); return $output; }
Here’s the site in case you need to see. And some help on how to install the edited function would be reall welcome because I don’t remember php that well..!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Editing post comment link’ is closed to new replies.