-
Notifications
You must be signed in to change notification settings - Fork 330
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 and image field #957
Comments
have you tried using the |
Isn't the value pattern available only with the output argument? The output itself is working fine, I'm just talking about the live preview |
If you're currently online we can talk about this in detail on gitter... easier that way: https://gitter.im/aristath/kirki |
Fixed in c505bad by adding a new Kirki::add_field( 'the', array(
'settings' => 'the_logo',
'type' => 'image',
'section' => $section,
'priority' => 50,
'label' => __( 'Content : Logo or Avatar', 'the' ),
'description' => 'This image will be displayed at the top of the hidden about section on the right-hand side of the screen.',
'tooltip' => 'You should put a nice image of yourself or a rad logo.',
'default' => THE_DEFAULT_LOGO,
'transport' => 'postMessage',
'js_vars' => array(
array(
'element' => '.the-logo',
'function' => 'html',
'attr' => 'src',
),
)
)); |
Cool but it is missing in docs @ https://kirki.org/docs/arguments/js_vars.html |
Issue description:
Not sure this is technically a bug but would be useful to have the image field to output the url of the image inside the
src
attribute when the transport is set topostMessage
Currently is outputting something like this
<img src=''>imagePath</img>
which is not helpful 😊Version used:
2.3.2
The text was updated successfully, but these errors were encountered: