Output array value as a key/pair for color field not working
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' )
https://github.com/ReduxFramework/redux-framework/blob/master/CONTRIBUTING.md
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.
Does nobody read the guidelines? Maybe someone could post their actual field, please?
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' ), ),
Fixed.
Great! Thank you!
Could you guys also update the plugin on WordPress repository? I'm installing it via TGM.
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.
Or rather kprovince did. ;)
Got you. Thank you guys!
Thanks, guys!
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;
Believe it's:
array(
'id' => 'opt-title-border',
'type' => 'border',
'title' => __('Title Border', 'flatnow'),
'output' => array('border-bottom' => array('.section .container .head'))
)
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/
Oh, I see.. There's a separate property for each side.