• Resolved breezewp7

    (@breezewp7)


    I’m using Skeleton Theme version 2.0.0 and am having a problem adding fonts to the dropdown lists in ‘Theme Options’. The fonts listed in the $available_fonts array in customizer.php don’t appear in this dropdown list and the fonts that are available from the dropdown list are not in the array. Could you explain how the dropdown list is populated and how I might add some extra fonts to it. I’d like to make ‘Comic Neue’ available.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author simplethemes

    (@simplethemes)

    I don’t believe customizer.php was ever part of 2.0.0.
    If you’re using the options-framework version, you may want to refer to the code that matches your version.

    https://github.com/simplethemes/skeleton_wp/blob/2.x-options-framework/smpl_skeleton/functions.php#L1128

    Thread Starter breezewp7

    (@breezewp7)

    Thanks for your response, I feel somewhat privileged to be conversing with the theme author! I’m relatively new to wordpress and php and am just tinkering as a means to learn a bit more. I posted to another forum regarding adding fonts and was pointed to customizer.php, so I got my versions mixed up. I am using 2.0.0 and have looked at the functions.php so things are becoming more clear. I presume any fonts the theme uses come from system fonts so if I wanted to add an obscure font or a google font I’d need to use version 2.1 and do this through customizer.php. If this is too trivial a question for someone of your status I’ll understand from your silence, however any knowledge you can impart on me that will enable me to add fonts to your theme using php will be graciously recieved.

    Theme Author simplethemes

    (@simplethemes)

    Hi,

    Yes, basically 2.0 and 2.1 enqueue fonts differently.
    It’s possible with both versions though.

    Here is some sample child theme functions that work with 2.0 which allow you to filter the font options in both the UI and frontend output:
    https://pastebin.com/UpFmkXbe

    Thread Starter breezewp7

    (@breezewp7)

    Thanks for your help!

    Much Appreciated!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ThemeOptions Typography’ is closed to new replies.