cf7-repeatable-fields icon indicating copy to clipboard operation
cf7-repeatable-fields copied to clipboard

Buttons alignment and order

Open felipeelia opened this issue 5 years ago • 1 comments

Let's create two options:

  1. Buttons alignment (left or right)
  2. Buttons order (+/- or -/+)

felipeelia avatar Sep 17 '19 13:09 felipeelia

Until this is implemented you can swap the buttons by calling this in the document ready function:

    function swapButtons() {
        $(".wpcf7-field-group-add").each(function(index) {
            $(this).after($(this).prev().detach());
        });
    }

By using detach it keeps all of the events like the click handlers.

rtpHarry avatar Nov 28 '19 19:11 rtpHarry