Adding custom hover text to iconify icons

blogging
quarto
Author

ChuckPR

Published

September 30, 2024

I like having icons instead of text in my blog’s navbar. I use the iconify extenion for icons but when I was first adding icons to my blog I noticed the hover text from my browser was not helpful.

The default hover text is just the full name/description of the image.

The default hover text is just the full name/description of the image.

Upon reading the iconify README, I learned I can control hover text with a title key. E.g.:

# note the title key in the line below
{{< iconify ph:lightbulb-bold title=TIL label=TIL size=Large >}}

The snippet above would create hover text like this .

After setting the title key, the hover text is much more useful.

After setting the title key, the hover text is much more useful.