Can't replace comment icon for chat

Not sure why this doesn’t work… I’d like to replace the comment icon used for chat:

image

I have fa-pro icons plugin installed. in the browser inspector i can replace it with fal-comments:

Screenshot from 2023-04-13 18-08-29

But from the theme it doesn’t work:

api.replaceIcon('comment', 'fal-comments');

Actually, I can’t replace it with any other icon, e.g. api.replaceIcon('comment', 'cog'); doesn’t work either. api.replaceIcon('bars', 'fal-comments'); would work though:

image

Anyone tried to replace the comment icon for chat already and figured this out?

2 Likes

Is this one of the d-icon ones?

2 Likes

You’ll want to replace d-chat — this is an alias so the chat icon can be replaced without replacing all occurrences of comment

api.replaceIcon('d-chat', 'fal-comments');

6 Likes

Thank you both :pray: works like a charm :sparkles:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.