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

Latest update Google API key problem

Open maarcin opened this issue 12 years ago • 7 comments

Hi guys,

just did the update to the latest version. When I put an API key for google fonts html instead of starting with html starts with this

<link rel="stylesheet" id="options-google-fonts" href="//fonts.googleapis.com/css?family=Abel|inherit&v=1393930241" type="text/css" media="all" />

Any ideas?

Edit: looks like this problem is related to typography field. For now I'll stick with older version.

Edit2: there are also problems with background field. Output doesn't work with metaboxes, but this doesn't work from the beginning, just mentioning it now :P

Best Marcin

maarcin avatar Mar 04 '14 10:03 maarcin

I don't quite understand what you are saying (or asking, or even what the issue is), but that code you included is accurate.

kprovance avatar Mar 04 '14 18:03 kprovance

That link with google fonts was before html tag. Nevermind, that is solved, probably something from config was changed and that cause the issue.

But background field doesn't work properly. It outputs proper values only when I use 'output' => array('body'), then color, image etc are saving. When I print_r values they're not saved.

E.g. values from output: body{background-color:#2cc174;background-repeat:no-repeat;background-size:inherit;background-attachment:fixed;background-position:left top;background-image:url('http://localhost:8888/diversy/wp-content/uploads/2014/02/wood_pattern.png');}

Values from print_r: Array ( [background-color] => #f2f2f2 [background-repeat] => repeat [background-attachment] => scroll [background-position] => center top [background-size] => inherit )

Values from print_r were previously set as my defaults,

I would use output, but it doesn't work with metaboxes.

maarcin avatar Mar 04 '14 20:03 maarcin

Odd, nothing should go before the HTML tag, except the doc declaration. As far as metabox issues, since that is a premium offering, issue with it should be posted here: http://reduxframework.com/support/

kprovance avatar Mar 04 '14 20:03 kprovance

Ok, so changed ID of background field that was previously declared and it seemd to work... Looks like field doesn't reset properly?

maarcin avatar Mar 04 '14 20:03 maarcin

Give us EXACT steps to duplicate please. There is no reset in metaboxes. So if you had something stored in the individual post it will always override that. IE, reset doesn't work in metaboxes.

Is that your concern here?

dovy avatar Mar 04 '14 20:03 dovy

I have background field set like so (before update to the newest version): array( 'id'=>'body_bg', 'type' => 'background', 'title' => __('Background', 'mthemes'), 'default' => array( 'background-color' => '#f2f2f2', 'background-repeat' => 'repeat', 'background-attachment' => 'scroll', 'background-position' => 'center top', 'background-size' => 'inherit', ), ),

I did the update and after I changed e.g. background color nothing happened. When I did print_r new values were not saved. It worked only when I added output like so 'output' => array('body'),. When I changed ID of background field to something new and removed default values it started to work properly. But when I used body_bg as ID it always shows default values and doesn't seem to update the values.

maarcin avatar Mar 04 '14 20:03 maarcin

Problem related to metaboxes. I did a workaround and it seems to solve the issue. @dovy if you would like to solve the bug for this I can send You short video.

Cheers

maarcin avatar Mar 05 '14 12:03 maarcin