How to get Spacing control to work
-
This is what i am using:
xxxxxx_Kirki::add_field('theme_customizer',array( 'type' => 'spacing', 'settings' => 'inside_top_sidebar_padding', 'label' => __('Spacing Control', 'my_textdomain'), 'tooltip' => esc_attr__('Set the amount of padding in the inner Top SideBar container. You can use PX, %, REM, and EM based values. Default is 10px.','themepress-primo'), 'section' => 'top_sidebar_layout_section', 'priority' => 4, 'transport' => 'auto', 'default' => array( 'top' => '10px', 'right' => '10px', 'bottom' => '10px', 'left' => '10px', ), 'output' => array( array( 'element' => '.inside-top-sidebar', 'function' => 'css', 'property' => 'padding-top,padding-right,padding-bottom,bottom-left', ), ), ) );
and I get this error:
Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/forge/wp-content/plugins/kirki/modules/css/field/class-kirki-output-field-dimensions.php on line 34
So I suppose I did not build it correctly….lol
Any help to get this to work would be appreciated – would actually be cool if there was an full working example on the Spacing page. I know there is one there, but I don’t think it’s complete.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to get Spacing control to work’ is closed to new replies.