I'm trying to figure out how to change the font type for a single word. Currently, I'm working on a CharPortal on my Wikia and want the different types of characters to have a different font than the generic "Characters" font. I tried changing it via "span style=font-family: 'font type here'" with no luck. How can I make the font style show through?
Also, my second question, what fonts are able to be used on articles in this way?
Sorry if my question doesn't make sense, I'm still learning about this stuff.
<span style=font-family:font type here>Some words here</span>
If the font you are choosing is not available by default on Fandom (default fonts available include Comic Sans MS, Arial, Times New Roman, Rubik, etc.), you can choose a Google Font that you desire to use and import that Google Font in your site-wide CSS.
Seems to work for me. What exactly did you put when you tested it? It should be something like this:
<span style="font-family: 'Comic Sans MS';">Some words here</span>
Using the double quotes is best practice when assigning HTML attributes and using the single quotes around the font is best practice for font names with spaces in them. In a CSS stylesheet you could use either single or double quotes to surround the font name but since the double quotes are reserved for HTML, you have to use the single quotes in this case.