-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postMessage does not work #1479
Comments
Hi @aristath Also, It seems like we can't get setting to work on While adding kirki controls using
And controlling it on
It was working fine before and no issue was there. Seems this is an issue. Can you confirm this? Thanks |
@blacksirius try this: Kirki::add_field( '5avenue_theme', array(
'type' => 'color-alpha',
'settings' => 'header_mobile_border_color',
'label' => __( 'Header Border Color', 'kirki' ),
'description' => __( 'Color of the border below the header.', 'kirki' ),
'section' => '5avenue_header_mobile_section',
'default' => '#e0e0e0',
'priority' => 10,
'transport' => 'auto',
'output' => array(
array(
'element' => '#header-mobile.header-mobile--border-on',
'property' => 'border-bottom',
'prefix' => ' solid 1px',
),
),
) ); @sethstha I can't replicate your issue. |
@blacksirius it works fine if I do these changes to your code:
Also you need to change the |
@blacksirius my apologies, it looks like this was indeed a bug. I had it fixed locally but never pushed the fix in the repository. I just pushed it now, it should be fixed for you as well. Also, instead of the |
Issue description:
Styles update via postMessage does not work. If you use a prefix for output, js produces an error
Version used:
3.0.9
WordPress 4.8
Using theme_mods or options?
theme_mods
Code to reproduce the issue (config + field(s))
Module postMessage output
Where solid 1px return error
The text was updated successfully, but these errors were encountered: