Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] Thoughts heading

Home Forums Support Thoughts heading

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #171283
    ian

    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

    #171306
    Tom
    Lead Developer
    Lead Developer

    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.

    #171576
    ian

    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

    #171698
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #171916
    ian

    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

    #171968
    Tom
    Lead Developer
    Lead Developer

    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
    }
    • This reply was modified 4 years, 9 months ago by Tom.
    #172491
    ian

    Hi

    I am not used to such fast responses
    Will try this out asap

    Ian

    #173856
    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

    #173878
    Tom
    Lead Developer
    Lead Developer
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.