Home » Topics » General Support » Not working in Customizer

Not working in Customizer

ACF Widgets Support General Support Not working in Customizer

Tagged: 

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #45937
    Elliot Taylor
    Participant

    Hi – As per: https://acfwidgets.com/support/topic/widgets-editable-in-theme-customizer/

    The ACFW Widgets do not work in Customizer. It asks to goto Appearances > Widgets.

    This is a really important feature and the reason I’m using ACFWidgets.

    Is there any chance you can look into this? Much appreciated

    Elliot

    #45938
    Elliot Taylor
    Participant

    p.s. If I comment out: //add_action(‘init’, ‘acfw_remove_fields’);

    line 151 helper-functions.php then widget works in customizer

    Thoughts? Cheers

    #45939
    Daron Spence
    Keymaster

    Hey Elliot, the reason ACFW doesn’t ‘work’ in the customizer is because of a bug in ACF.

    In normal customizer functionality, the Widgets should not be saved until the user hits save and publish. ACF instead automatically saves every field via Ajax when you stop editing hit. This can have undesired consequences, depending on how you use Widgets.

    If you are comfortable experimenting, you can remove that action via the remove_action() function in a custom plugin, rather than editing the ACFW files.

    I’ve been going on with Elliot about this for a few months now in regards to fixing ACF core but so far he hasn’t gotten to it. 🙁

    Does that answer your question?

    #45940
    Elliot Taylor
    Participant

    Hi Darren – Thanks for the detailed reply. Appreciated. I have noticed the AJAX auto-save making editing in customizer difficult.

    I wonder if we can disable the ajax if in customizer:

    global $wp_customize;
    if ( isset( $wp_customize ) ) {
        // disable ajax
        remove_action('ajax??....
    
    }

    Appreciate you looking into this. We’re using ACFW to build pages in customizer so it make it confusing for the clients to then have to go into appearances > widgets.

    I’ll tweet Elliot to make sure it stay on his radar.

    Cheers

    #76321
    Daron Spence
    Keymaster

    Hey Elliot, just a follow up, we’re still working on how to get Widgets to work as expected in the customizer, but haven’t made any solid progress yet. It’s a tricky situation with a lot of stuff to wade through. Be vigilant! Slowly getting there 🙂

    #76572
    Elliot Taylor
    Participant

    Thanks Daron, I have a signed of client site and it is a shame not to have this. I tweeted Elliot Condon too, hope that helps. Appreciate you looking into

    #79505
    Elliot Taylor
    Participant

    Just a quick check on progress – My client is really needing this to edit and curate their pages. Much appreciate an update.

    Thanks

    Elliot

    #79508
    Daron Spence
    Keymaster

    Hey Elliot,

    I know it’s frustrating (I do a lot of client work too!) but I’m going to have to recommend that you find a different way to approach this issue or maybe do some more training with your client to help them work outside of the customizer.

    While Elliot Condon and I have been collaborating on this, I don’t think there is a solid fix coming in the near future. It could be two weeks just as easily as it could be 2-6 months. I have a day job that keeps me from spending hours and hours debugging code in other projects.

    Again, I totally understand your frustration, but this is a huge undertaking. I would love to get this resolved eventually but I’m not sure it will happen in the near future. If I’m reading between the lines correctly though it sounds like you found a way to work around it.

    #80146
    Elliot Taylor
    Participant

    Thanks Daron – I didn’t really get it to work. Still buggy with that fix. Tried to disable AJAX for customizer.

    Keep us posted. If you have dozens of pages it is hard to administer them all within the Widgets section.

    Appreciate your response. Cheers

    #86621
    Philippe Braun
    Participant

    There’s not been and not about to be any progress re: using ACF widgets in Customizer, has there?
    If it somehow magically worked, it would make my life a lot easier (and a lot of sense, too, IMHO).

    Thanks,
    Phil

    #86628
    Daron Spence
    Keymaster

    Phil, there was an update to ACF a few weeks ago that is a step in the right direction towards getting customizer stuff working. I completely agree that it would be awesome if it worked, but getting ACF core compatible is what we need.

    I’m still playing around with this new version to see if I can make something work. However, I would not hinge anything on this feature. The customizer is still an experimental supported feature in ACF.

    Thanks for hanging in there and supporting the plugin!

    #86629
    Philippe Braun
    Participant

    Hi Daron,

    thanks for your feedback!
    I eventually noticed that I can do pretty much all I need in Customizer by simply creating empty widgets in PHP and then applying ACF forms to them (bypassing the acfwidgets plugin).
    However, I’m not sure that’s the way I’ll go for this project, since working in the Customizer with a moderately complicated starting page with dozens of widgets is not going to win any speed trophies.

    Thanks,
    Phil

    #95178
    Elliot Taylor
    Participant

    If you want to get this working then comment out the line 151 in acf-widgets/includes/helper-functions.php

    //add_action('init', 'acfw_remove_fields');

    It’s a short-term fix. Hope this is resolved soon.

    #102359
    Przemek Cichoń
    Participant

    Hi Daron,

    Since ACFW is already working in the customizer would you be able to update the plugin and remove the notification:

    Sorry, this widget is not availabe to edit from the Customizer. Please go back to the Widgets Page to edit.

    I appreciate that.

    Thanks,
    Przemek

    #102372
    Daron Spence
    Keymaster

    Hey Przmek, the holiday’s caught me by surprise this year. Gonna be hitting ACFW and squashing some bugs and fixing some features like this one! Expect an update before February hopefully 🙂

Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘Not working in Customizer’ is closed to new replies.