Removing meta entry separator from the bottom of a post
-
Hi guys,
I’ve been struggling to solve it for the better part of today and I think it’s time for me to wave the white flag here. Maybe one of you would be able to help me out.
My page, using Prana Theme that I have customised a bit, is at https://www.dynamitri.pl
As you probably can see, I have moved the Comment section (‘Komentarze’ in Polish, my native language) to the bottom of the post. For some reason, however, I seem completely unable to get rid of the backslash ‘\’ preceding it. I have even gone to the point of opening the utility.php file on my server, which WordPress itself has no access to to the best of my knowledge. There I’ve found some code, which I think is responsible for that part of the post I have problems with:
/** Prana Post Comments */ function prana_post_comments() { if ( ( ! comments_open() || post_password_required() ) ) { return; } ob_start(); comments_number( __( 'Leave a Comment', 'prana' ), __( '1 Comment', 'prana' ), __( '% Comments', 'prana' ) ); $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, prana_entry_meta_sep() ); return $output; }
I have attempted to get rid of
prana_entry_meta_sep();
variable, but as soon as I do this, the whole site literally blows up right in my face giving syntax errors and becoming unusable.Now, I want to keep the entry meta separators on top of the post, where the date and tags are located, but I want the comments link to be at the bottom of the post, and clear (i.e. not preceded by any mark whatsoever). Does anyone have any idea as to how to do this in this case, and remove the problematic backslash?
Many thanks. All suggestions will be greatly appreciated.
Kind regards,
Dynamitri
- The topic ‘Removing meta entry separator from the bottom of a post’ is closed to new replies.