I have 7 different layouts within one Flexible Content and i already set maximum layout to 1 for these layouts. But how can i disable duplicate layout button? I don’t wanna give permission to user for duplicate layouts.
Hello, did you find a way to remove the duplicate button ? ( It’s easy to “display: none;” in css but I’d like to know if there were a better way )
Can can either use CSS to hide the button or you could possibly add custom javascript to remove the button completely.
(function($){
if (typeof(acf) == 'undefined') {
return;
}
acf.add_action('ready append', function(e){
$('a.acf-icon.-duplicate').remove();
});
})(jQuery);