• I love this plugin! I’ve been using FontAwesome in a lot of my projects over the last few months, and this really works well. I just have one tiny problem with it: When you put one of these in a repeater, it shows up as two drop downs before you pick an icon and save the page. Here’s a GIF as an example:

    View post on imgur.com

    Would love if this could be fixed!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matt Keys

    (@mattkeys)

    Hey Revxx14,

    I am glad you like the plugin. I just did some testing using the latest versions of WordPress, and the latest version of ACF 4.x and 5.x. I wasn’t able to reproduce the issue you are seeing with the duplicate select fields in a repeater on the first load.

    Can you verify you are also on the latest versions of WP and the plugins, and if so clear your caches and try again?

    Thread Starter JacobTheDev

    (@revxx14)

    That’s interesting, it happens for me on multiple sites. I’ll take another look this morning and see if it’s still doing it.

    Hi revxx14,

    I have the same problem.
    Do you have found a solution?

    Thanks

    Thread Starter JacobTheDev

    (@revxx14)

    Yea, you just need to look in the plugin files and replace all the [] style arrays with array() style arrays.

    Style arrays are already with array()
    For me, the solution was to add a condition in edit_input.js

    $(document).live(‘acf/setup_fields’, function(e, postbox){

    $(postbox).find(‘.field[data-field_type=”font-awesome”], .sub_field[data-field_type=”font-awesome”]’).each(function(){

    // Fix Bug
    if($(this).parents(‘.repeater.empty’).length !== 0){
    return;
    }

    initialize_field( $(this) );
    });

    });

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Awesome plugin, one minor issue’ is closed to new replies.