Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a way to add a Google Fonts dropdown to the Options Framework panel (http://wptheming.com/options-framework-theme/)

share|improve this question
1  
Please search for it in the framework code and post the relevant parts... –  brasofilo Jun 22 '12 at 18:13
    
You have to provide what you've already tried. The answer is currently flagged as "low quality" and suggested to be closed. –  kaiser Aug 31 '12 at 0:59
add comment

1 Answer

Should be very easy since its has a hook right in place so something like,

add_filter('of_recognized_font_faces','add_google_fonts_list');

function add_google_fonts_list($defaults){
    //add as many as you want
    $mine = array(
        'Ubuntu' => "'Ubuntu', sans-serif",
        'Lobster' => "'Lobster', cursive",
    );
    return array_merge($mine,$defaults);
}

and when you render the css make sure to add the right import ex:

@import url(http://fonts.googleapis.com/css?family=Ubuntu);
share|improve this answer
1  
You the man @bainternet, Thanks for sharing that. –  Sagive SEO Dec 10 '13 at 6:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.