• Hi there – is there a way to replace the word “comments” in the meta “52 comments” with e.g. a Font Awesome icon instead? I had a go with pure CSS but was unable to find a way to remove the word “Comments”.

    Here’s how it looks like now: https://imgur.com/6iwjurM

    How I’d like it to look like: https://imgur.com/Lml7bB1

    Many thanks in advance!

    • This topic was modified 3 years, 12 months ago by elliesatt.
    • This topic was modified 3 years, 12 months ago by elliesatt.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Elvin

    (@ejcabquina)

    Hi there,

    You can change what text are displayed on comment links using gettext filter.

    Example:

    add_filter( 'gettext', function( $text ) {
        if ( 'Leave a comment' === $text ) {
            $text = 'Your custom text';
        } if ( '1 Comment' === $text ) {
            $text = 'Your custom text';
        } if ( '% Comments' === $text ) {
            $text = '% Your custom text';
        }
    
        return $text;
    } );
    • This reply was modified 3 years, 12 months ago by Elvin.
    Thread Starter elliesatt

    (@zee300)

    Thanks, works perfectly!

    Plugin Support Elvin

    (@ejcabquina)

    No problem. Glad you got it sorted. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Replace “52 comments” with “52 ??”?’ is closed to new replies.