Using your own fonts

Can I use custom fonts in Smart Slider 3?

Sure can!

General rule

You must call the custom fonts using the name they were defined with. For instance, if the font "Open Sans" was defined by the name of "MyFont" then it must be used as "MyFont" otherwise the browser won't be able to render it.

Not sure what's the name of your font? Consult the developer of your theme or plugin, which loads the font.

How do fonts work in Smart Slider 3?

Smart Slider 3 handles the fonts the same way the rest of your website does. If the font is already loading on your site all you need to do is to write it's name to the Font family field and it will be used.

Smart Slider 3 recognizes Google fonts automatically as well, so in that case again, all you need to do is to write their names to the
Font family field.

Make sure that the font was uploaded to the path you gave to the src value.

Save your edits.

❗ If you load a font to your frontend and use a page builder, you probably won't be able to see the correct fonts during page editing. That's because the sliders are loaded in a special way to a page builder's editor, via iframe, and iframes can't interact with the site's content. So the font family is not available there. But
once you exit the page builder, the fonts will load correctly.
❔ Want to be able to select your custom font from the font suggestion list? Go to the
Global settings - Fonts and put it to the text area.

Other methods

You can also load fonts with JavaScript, for example Typekit does that. You should look around in their documentations, how it should be done or contact their support, if you are not able to call in the given font.

From our end there is nothing you have to do, just write its name into the Family of the font, and if the font is loading in your website, our slider will use it.

Backend

The fonts added to your frontent won't be loading on your backend. If you want the fonts in your backend, too, follow these steps:

❗ Adding a new font
won't make it automatically appear in the suggested font drop down list! If you want your font to appear there, go to the
Global settings - Fonts and put it to the text area.

Troubleshooting

1

If your font won't load for some reason, use Chrome to figure out the problem. Press F12 → click on Console then refresh the page, where the font should load. This can write out problems, like you gave a wrong url to the font file or your server blocks this file.

If that won't show anything, in your Chrome if this developer tools isn't opened press F12 again → press Ctrl + SHIFT + F → search for your code's parts to see if you can find it. For example, search for the url or the font family name if it is unique enough to find it easily.

This search returns every result, which can be found within all the files and codes loaded by your website. If you won't be able to find your font call here, then your code was either inserted into the wrong place or some kind of cache doesn't load the new version of your file.

Press Ctrl + F5 to make sure your browser's cache doesn't load the previous file. If you have some other cache on your website, clear its cache too! If you are pretty sure you don't have any cache, then you might have edited a wrong file or there was something going wrong with the saving and the file wasn't modified.

2

If everything seems to be fine but the font still doesn't work, check if the font you're trying to use is actually loaded by your site. Remember,
you must use the font with the name it was defined with.

First you should inspect the text where the font is not working using your Chrome browser. Simply right click on it and choose Inspect element. Locate the font-family CSS property and give it a fallback, like cursive or monospace.

To add a fallback, simply put a comma and then your fallback next to the original value.

Original

Fallback

font-family: 'Raleway';

font-family: 'Raleway', monospace;

If the font look changes, the font you're trying to use is not loaded by your site. Check the font name and make sure it's correct!