Home>Support>Icon Form Field Doesn’t show up icon

Icon Form Field Doesn’t show up icon

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi guys,
I’m trying to create a Widget to display icon with the icon form field.

'icon_list' => array(
    'type' => 'repeater',
    'label' => __('Icon List', 'nbtsow'),
    'item_name' => __('Icon', 'nbtsow'),
    'item_label' => array(
        'selector' => "[id*='icon_list-title']",
        'update_event' => 'change',
        'value_method' => 'val'
    ),
    'fields' => array(
        'icon' => array(
            'type' => 'icon',
            'label' => __('Icon.', 'nbtsow'),
        ),
	'icon_text' => array(
	    'type' => 'text',
	    'label' => esc_html__('Text for icon section', 'nbtsow'),
	),
    )
),

But the icon list in the page builder doesn’t show up.
I did some research and find out Livemesh’s SiteOrigin Widget bundle with its Icon List Widget didn’t show up as well.
Please response to me asap.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 11 months ago Hiệp Vũ

    And your Icon Widget in the SiteOrigin Widget Bundle doesn’t work too.
    Is this a bug?

  2. 8 years, 11 months ago Hiệp Vũ

    Hello guys,
    Do you have any news on this issue? Because I really need this function to work right now :(.

  3. 8 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Hiệp Vũ,

    I suspect you’re experiencing a CORS issue.

    Would it be possible for you to create a temporary admin account for us so we can log in and take a look?

  4. 8 years, 11 months ago Private Message - Alex S Hi, I Work Here

    This is a private message.

  5. 8 years, 11 months ago Hiệp Vũ

    Hi Alex,
    Thank you for your response.
    I’m developing in localhost environment right now. Here is the link to the widget collection plugin: https://github.com/HiepVu511/nbt-so-widgets.
    If that is not enough pls tell me and I will see if I can upload to a host for you.
    Again thank you guys for your great work.

  6. 8 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Hiệp Vũ,

    Oddly, I was able to see the icon list without issue.

    Said icon doesn’t display in the preview or the frontend though due to the template not being setup, although you’re likely already aware of that – can’t really set it up if you can’t see it.

    Could you please view this widget (as in the icon list), and then could you please send me the contents of your console? Please refer to this guide (https://www.wickedlysmart.com/hfjsconsole/) on how to access your browser console.

  7. 8 years, 11 months ago Hiệp Vũ

    Hi Alex,
    Can’t believe I don’t check the browser’s console, sorry about this.
    But I actually don’t understand this issue. Do I violate some policy? How can I fix this?

  8. 8 years, 11 months ago Hiệp Vũ

    Oh and here is my browser console

    You was right about the CORS issue.

  9. 8 years, 11 months ago Hiệp Vũ

    Sorry about the link..
    Here it is again

  10. 8 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Hiệp Vũ,

    Your best way to fix this would be to enable CORS. This first method on this page should help.

  11. 8 years, 11 months ago Hiệp Vũ

    Hi Alex,
    Thank you for your help.
    We are making a theme for themeforest build on this plugin. So I need to make sure if this issue can happen on another host or environment as well.
    Please tell me how can I do that?

  12. 8 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Hiệp Vũ,

    This isn’t something you can really avoid nor can you enforce it on people. If you could, we would have already done so.

    Basically, you have to send a specific header to allow for this. You shouldn’t do this however unless the user specifically wants such a thing.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More