Archived topic
Thoughts heading
8 replies · Started by ian on February 8, 2016
Hi
The title above any comments left on a post is
One thought on “POST TITLE” or
3 thoughts on “POST TITLE”
Everywhere else as far as I am aware within GP by default comments are referred to as comments not thoughts ?
There are filters to change
generate_leave_comment
generate_leave_reply
generate_leave_reply
but I cant see a filter to change the words "Thoughts on" "One thoughts on" ?
I think Thoughts by default should be "Comments" ?
If not available already would like to be able to change this
Also would further customisation of Comments area be possible by within Color and Typography addons or is the way to go CSS ?
Ian
Good point! I just went with the default WordPress comments template.
I'll look into adding a filter for the next version :)
Currently CSS is the way to go for further customization of the comments area.
Hi
Thanks again
Just to say your support is outstanding !!
Any idea how long before new version of GP and filter added to change "thoughts" ?
A couple of things I can't work out how to customise in GP comments area
Get rid of 'on “POST TITLE”' see below there is no CSS ID ?
One thought on “POST TITLE” or
3 thoughts on “POST TITLE”
Right align Reply link my CSS is not upto it or it is not possible ?
Basically trying to achieve something similar to this site
No estimated time on release yet - just had a big release so probably won't be for a couple of weeks.
You can hide the entire thoughts title like this:
.comments-title {
display: none;
}
Hi
Time not a problem
When you do have time to do it would be nice if
"Post title" can be hidden from next to "thoughts title"
ie just have "3 Comments" for example
instead of "3 Comments on 'post title'"
hope that makes sense
Ian
With the code I gave you in the other topic (adding the generate_below_comments_title hook), this is now possible.
First, add this CSS:
.comments-title {
display: none;
}
.comments-title.comments-title-custom {
display: block;
}
Then, add this PHP:
add_action( 'generate_below_comments_title','generate_new_comments_title' );
function generate_new_comments_title()
{
?>
<h3 class="comments-title comments-title-custom">
<?php printf(
_nx( 'One comment', '%1$s comments', get_comments_number(), 'comments title', 'generate' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h3>
<?php
}
Hi
I am not used to such fast responses
Will try this out asap
Ian
Hi
Sorry again for delay at looking at this
Works like a dream
Minor point I think it should be "1 comment " not "One comment " ties up better when there is more than one comment
Thanks
Ian
Good point :)
