ThemeFuse / Unyson

A WordPress framework that facilitates the development of WP themes
http://unyson.io
922 stars 217 forks source link

Get “Style” and “Weight” Typography v2 #2013

Closed elissonkario closed 8 years ago

elissonkario commented 8 years ago

Hello , thank you for your framework. It is really amazing. I am adding Option “Typography v2” in a Shortcode my thema . But I’m having trouble call options “style” and ” weight” . The other attributes are ok . However, these two attributes always return to “false” . Which way to implement these attributes in order to use them in view file?

array
(
    [google_font] => true
    [subset] => ‘latin’
    [variation] => ‘100italic’
    [family] => ‘Lato’
    [style] => false
    [weight] => false
    [size] => false
    [line-height] => ’35’
    [letter-spacing] => ‘0’
    [color] => ‘#000000’
)
ghost commented 8 years ago

Hello,

When it is Google font, you must use the variation parameter instead.

Thank you for the kind words. Cheers!