• Hi, thank you for this great plugin! I would like to replace the “Report comment” text with a 🏴 flag icon from FontAwesome. Is this possible? Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hello,

    Yes, it can be done with a bit of PHP code. You can add it to functions.php of your child theme or in your own plugin.

    function my_zeno_report_comments_flagging_link_text( $text ) {
    $text = '----<br>Report comment';
    return $text;}
    add_filter('zeno_report_comments_flagging_link_text', 'my_zeno_report_comments_flagging_link_text');

    The text needs to be replaced with the character from the FontAwsome documentation. I do suppose you already have FontAwesome set up.

    Does this help you?

    Regards, Marcel

    Thread Starter nestormarius

    (@nestormarius)

    Hi Marcel!

    Thank you for the quick reply. Yes, I have FontAwesome set up on my website and I am using a lot of icons, however the PHP code you gave me only outputs text. So whatever I put instead of '----<br>Report comment' (e.g. '\f024' or '<I class="fa-solid fa-flag"></i>') it will only output the exact text, no icon. Any suggestions?

    Regards, Marius

    Plugin Author Marcel Pol

    (@mpol)

    Hi Marius,

    I see.
    The html <i> element will be escaped, that is no resolve.

    I forgot how this all works. There is an .icon class with content:before or something? I really have no clue πŸ™‚

    Can you share the address of the website? Then I can take a look and follow the documentation of FontAwesome, see where I get.

    Regards, Marcel

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Replace “Report comment” link with icon’ is closed to new replies.