Unyson
Unyson copied to clipboard
Custom HTML
Hello,
How would I add the 'custom html' or 'raw code' option into the Unyson options at the top?
Also the 'space' option?
You can do so with this array http://manual.unyson.io/en/latest/options/built-in/html.html
Thank you, where would I need to put this HTML for it to work on my page builder?
array( 'type' => 'html', 'value' => 'default hidden value', 'attr' => array( 'class' => 'custom-class', 'data-foo' => 'bar' ), 'label' => __('Label', '{domain}'), 'desc' => __('Description', '{domain}'), 'help' => __('Help tip', '{domain}'), 'html' => 'My custom HTML', )