Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Custom HTML

Open sschristina opened this issue 8 years ago • 3 comments

Hello,

How would I add the 'custom html' or 'raw code' option into the Unyson options at the top?

sschristina avatar Jun 12 '18 09:06 sschristina

Also the 'space' option?

sschristina avatar Jun 12 '18 10:06 sschristina

You can do so with this array http://manual.unyson.io/en/latest/options/built-in/html.html

jonmlas avatar Jun 13 '18 14:06 jonmlas

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', )

sschristina avatar Jun 19 '18 13:06 sschristina