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

Allow html on radio-buttonset choices #1818

Closed
anthonyryanrusso opened this issue Feb 26, 2018 · 1 comment
Closed

Allow html on radio-buttonset choices #1818

anthonyryanrusso opened this issue Feb 26, 2018 · 1 comment
Milestone

Comments

@anthonyryanrusso
Copy link

anthonyryanrusso commented Feb 26, 2018

Issue description:

Is there a way you can allow html on radio-buttonset choices? I would like to have the actual icon show but it seems to be outputting the choices as plain text.

Version used:

3.0.25

Using theme_mods or options?

theme_mods

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

Kirki::add_field($opt_name, array(
    'label' => esc_html__('Header middle cart icon'),
    'section' => 'header_middle_setup_section',
    'settings' => 'header_middle_cart_icon',
    'type' => 'radio-buttonset',
    'required' => array(
	array(
	    'setting' => 'header_middle_icons_menu_visibility',
	    'operator' => 'contains',
	    'value' => array('mobile', 'tablet', 'desktop')
        ),
        array(
	    'setting' => 'header_middle_cart_visibility',
	    'operator' => 'contains',
	    'value' => array('mobile', 'tablet', 'desktop')
	)
    ),
    'choices' => array(
        'shopping_cart' => '<i class="fas fa-shopping-cart"></i>',
        'shopping_bag' => '<i class="fas fa-shopping-bag"></i>',
        'shopping_basket' => '<i class="fas fa-shopping-basket"></i>'
    ),
    'default' => 'shopping_cart'
));
@aristath
Copy link
Contributor

Should be ok now

@aristath aristath added this to the 3.0.26 milestone Mar 17, 2018
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

2 participants