Multiple clone buttons displaying (+ solution)
-
I have created a page builder with ACF. It’s quite awesome and your plugin makes it even better. Thanks for that.
What is stumble upon is that when I insert a new flexible content item, a lot of duplicate clone buttons are inserted on the item. This can easily been fixed by inserting an if-statement in the acf-extended-fc-control.js file.
Like this: (around line 600)
// Button: Clone if (!$controls.has('[data-acfe-flexible-control-clone]').length) { $controls.prepend('<a class="acf-icon small light acf-js-tooltip acfe-flexible-icon dashicons dashicons-admin-page" href="#" title="Clone layout" data-acfe-flexible-control-clone="' + $layout.attr('data-layout') + '"></a>'); }
Could this please inserted into the core of your plugin?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Multiple clone buttons displaying (+ solution)’ is closed to new replies.