I'm struggling to incorporate a custom font into my WordPress website and could really use some assistance.
Currently, within my theme directory, I have a 'font' folder where I've placed my 'Museo300-Regular.otf' file alongside the style.css file:
Theme
------style.css
------font
----------Museo300-Regular.otf
I am utilizing Compass to generate the font-face declaration like so:
@include font-face("Museo300", font-files("font/Museo300-Regular.otf"));
This produces the following output: @font-face { font-family: "Museo300"; src: url('fonts/font/Museo300-Regular.otf') format('opentype'); }
However, when I attempt to apply it to my HTML elements like this:
#headerContainer header #menu li {
float: left;
font-family: "Museo300";
color: #FFF; }
The font does not appear as expected. If anyone has insight into where I might be going wrong, I would greatly appreciate it! Thank you.