Skip to content

Can't figure out how to use custom icons #3683

Answered by jorge-campo
jorge-campo asked this question in Q&A
Discussion options

You must be logged in to vote

OK, I found it.

Do you know when you spent hours trying to make something work, and in the exact moment you ask for help you find the answer? 😅

The custom icons work for me now. Here is what I have done, just in case someone else finds the same issue:

  1. You don't need to add the <span></span> in your custom CSS if you only need to write the icons in your markdown files.
  2. The custom_icons path is relative to the path to your mkdocs.yml configuration file.
  3. If your icons are under (for example) overrides/.icons/status and you want to render the wallet.svg icon you have on that folder, you type :status-wallet: anywhere on your markdown file.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jorge-campo
Comment options

You must be logged in to vote
3 replies
@kamilkrzyskow
Comment options

@cedric-at-list
Comment options

@robtaylor
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants