Add Font to Theme Options drop-down list
-
Hello, I am new to wordpress. I would like to add a font to my theme’s font list. I am using Armada by Dream-Theme and I am using a child theme.
They say in their support section to use the “stylesheet-functions.php” file and add your font to the list. They also said you can do this is your child-theme’s functions.php file (thats what I need to do).
Here’s basically all the info they give:
function dt_stylesheet_get_websafe_fonts() { $fonts = array( 'yourfont' => 'yourfont' ); return apply_filters( 'dt_stylesheet_get_websafe_fonts', $fonts ); }
I added my font to the list, however, when I go to theme-options/fonts/… my font is not in the drop down list.
Also there is no drop down font list in my WP visual editor. Not sure if that’s normal. Would be helpful to have this addressed as well but that may be a seperate topic.
Thank you!
- The topic ‘Add Font to Theme Options drop-down list’ is closed to new replies.