Skip to content
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

HTML in the label #1705

Closed
runnickrun opened this issue Dec 14, 2017 · 2 comments
Closed

HTML in the label #1705

runnickrun opened this issue Dec 14, 2017 · 2 comments

Comments

@runnickrun
Copy link

Issue description:

Sorry if I missed it, but is it possible to add HTML in the control’s label / description?
It seems all HTML is being escaped there.

Version used:

(Did you try using the develop branch from github? There's a chance your issue has already been adressed there)
3.0.20

Using theme_mods or options?

theme_mods

Code to reproduce the issue (config + field(s))

Kirki::add_field( 'settings', array(
	'type'        => 'image',
	'settings'    => 'my-settings',
	'label'       => '<a href="#">Learn more</a>' .  esc_html__('Some additional description'), // learn more is being escaped too
	'section'     => 'my-section',
) );
@AlxMedia
Copy link
Contributor

AlxMedia commented Dec 14, 2017

I've had the same issue trying to add html to descriptions/labels. It works in tooltips though.

@aristath
Copy link
Contributor

Should be ok now in the develop branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants