redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Typography Preview font-size not working!

Open paulthecoder opened this issue 12 years ago • 9 comments

Can anyone help me figure out why the preview font-size is not working? Possibly a bug?

WordPress: 3.9.1 Redux: v3.2.9.2

array(
    'id'             => 'main_font',
    'type'           => 'typography',
    'title'          => __('Main Font', 'redux-framework-demo'),
    'google'         => true,
    'color'          => false,
    'font-size'      => false,
    'font-style'     => false,
    'font-weight'    => false,
    'text-align'     => false,
    'line-height'    => false,
    'letter-spacing' => true,
    'preview'        => true,
    'units'          => 'px',
    'subtitle'       => __('Select the main font of your website. For a list of recommended main fonts, navigate to', 'redux-framework-demo'),
    'default'        => array(
        'font-family'    => 'Roboto Condensed',
        'google'         => true,
        'letter-spacing' => 0.5
    ),
    'preview' => array(
        'text'      => 'Preview Text',
        'font-size' => '24px'
    )
),

paulthecoder avatar May 21 '14 21:05 paulthecoder

Because unlike SMOF, Redux shows you a live preview of what you have selected. You will need to set font-size in your default array as well. ;)

dovy avatar May 21 '14 21:05 dovy

Hmm I see, still does not work for me. Is it not possible when I set 'font-size' => false? I don't want the user to be able to change the font-size so I have set that to false.

paulthecoder avatar May 21 '14 21:05 paulthecoder

Ahhh... That could be... Hmm...

@kprovance What could we do?

dovy avatar May 21 '14 22:05 dovy

Meh, I'll get to it eventually.

kprovance avatar May 21 '14 22:05 kprovance

Heheh.

dovy avatar May 21 '14 22:05 dovy

Yea I just confirmed that is the case. Haha no big deal, a little bit of CSS shall do the trick for now. Great work guys, really appreciate it. Thanks!

paulthecoder avatar May 21 '14 22:05 paulthecoder

Haha, awesome. We'll probably just put this on the bottom of the list for now then.

If you would, please post a review: http://wordpress.org/support/view/plugin-reviews/redux-framework Like us on Facebook: https://www.facebook.com/ReduxFramework Follow us on Twitter: http://twitter.com/reduxframework

dovy avatar May 21 '14 22:05 dovy

It's probably something similar to when the preview text wasn't working, which was an easy fix. But yeah, I'll get to it sometime today/night

kprovance avatar May 21 '14 22:05 kprovance

Pushed an update that fixes this, v3.2.9.12

kprovance avatar May 22 '14 20:05 kprovance