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

Output array value as a key/pair for color field not working

Open consi9liere opened this issue 12 years ago • 14 comments

I tried to set background-color of section element using output array as a key/pair (color field) but it set text color property instead.

'output' => array( 'background-color' => 'section' )

consi9liere avatar May 29 '14 13:05 consi9liere

https://github.com/ReduxFramework/redux-framework/blob/master/CONTRIBUTING.md

kprovance avatar May 29 '14 14:05 kprovance

Hi,

Same here, the output return "color" instead of the "background". Just installed the latest version 3.2.9.25

I'm using sample-config.php as a theme file.

VladNov avatar May 29 '14 14:05 VladNov

Does nobody read the guidelines? Maybe someone could post their actual field, please?

kprovance avatar May 29 '14 14:05 kprovance

It's a "color" field:

array( 'id' => 'site_top_strip_bg', 'type' => 'color', 'title' => __('Top Strip', 'redux-framework-demo'), 'subtitle' => __('Top strip background color.', 'redux-framework-demo'), 'default' => '#000', 'output' => array( 'background-color' => '.top-strip' ), ),

VladNov avatar May 29 '14 14:05 VladNov

Fixed.

kprovance avatar May 29 '14 15:05 kprovance

Great! Thank you!

Could you guys also update the plugin on WordPress repository? I'm installing it via TGM.

VladNov avatar May 29 '14 15:05 VladNov

We're holding off for a few days. We did a massive update to typography and we want to make sure all the bugs are gone.

dovy avatar May 29 '14 15:05 dovy

Or rather kprovince did. ;)

dovy avatar May 29 '14 15:05 dovy

Got you. Thank you guys!

VladNov avatar May 29 '14 15:05 VladNov

Thanks, guys!

consi9liere avatar May 30 '14 11:05 consi9liere

Same thing with border field. When I try to set border-bottom only, it sets all borders instead:

array( 'id' => 'opt-title-border', 'type' => 'border', 'title' => __('Title Border', 'flatnow'), 'output' => array('border-bottom' => '.section .container .head') )

It creates something like this:

border-top: 3px solid #999999; border-bottom: 3px solid #999999; border-left: 3px solid #999999; border-right: 3px solid #999999;

consi9liere avatar Jun 02 '14 10:06 consi9liere

Believe it's:

array(
'id' => 'opt-title-border',
'type' => 'border',
'title' => __('Title Border', 'flatnow'),
'output' => array('border-bottom' => array('.section .container .head'))
)

dovy avatar Jun 02 '14 14:06 dovy

The border field not support an output field of element => selector. That's color and color_rgba. http://docs.reduxframework.com/redux-framework/the-basics/output-2/

kprovance avatar Jun 02 '14 16:06 kprovance

Oh, I see.. There's a separate property for each side.

consi9liere avatar Jun 05 '14 11:06 consi9liere