I'm currently in the process of trying to incorporate custom fonts into a WordPress website, but I'm facing challenges getting the desired font to appear correctly. Interestingly enough, I've managed to successfully display the custom font locally on an HTML and CSS test document that I quickly put together, as well as through Firefox's web developer tools, confirming that the font is indeed loading. The specific font I'm working with is named "Indubitably" and was downloaded from Font Squirrel, utilizing the .woff format for testing purposes.
Below is the code snippet I've implemented:
@font-face {
font-family: 'indubitably';
src: url('fonts/INDUBITA-webfont.woff');
}
h1, h2, h3, h4, h5, h6 {
color: black !important;
font-family: 'indubitably' !important;
}
I believe I've placed the font file in the correct directory, which should be /home/"myUsername"/html/wp-content/themes/hestia(my current theme)/fonts...
Despite attempting various methods such as adding the code directly to style.css, using plugins like Simple Custom CSS, or even leveraging the native WordPress CSS editor, none have yielded the desired outcome so far.
Please bear with me if this seems like a beginner question, as this is my first experience delving into this aspect of web development 😉