The DiviFlash Copy to Clipboard module lets visitors copy text to their clipboard with one click. Use it for coupon codes, email addresses, or links. Display a standalone button or place it beside the text, and confirm copying with a button change or a message.
Important Note: Copy to Clipboard requires Divi 5 and DiviFlash 5.9.0 or later. Enable it under WordPress Dashboard > DiviFlash > Modules > Copy to Clipboard.
Let’s explore how to configure the module and customize its appearance.
Content Tab
The Content tab lets you choose what visitors copy, configure the button’s default and copied states, and control what happens after copying.
Button

- Button Type: Choose how the button appears and you will have two options:
- Button: Display a single copy button.
- Field with Button: Display the text in a field with a copy button on the right. Visitors can click either the field or the button to copy the text.
Copy

- Text To Copy: Enter the value visitors will copy to their clipboard, such as a coupon code or email address. You can also use dynamic content.
Default State
These settings control how the button looks before visitors click it.

- Button Text: Enter the text shown on the button.
- Media Type: Choose Icon, Image, or None. When you select Icon or Image, these settings appear:
- Icon: Choose the button icon. (Available when Media Type is set to Icon.)
- Image: Upload or select an image. (Available when Media Type is set to Image.)
- Media Placement: Place the icon or image to the Left, Right, Top, or Bottom of the text.
- Gap Between Media and Text: Set the space between the icon or image and the text.
- Show Media On Hover: Reveal the button’s icon or image on hover. (Applies when the button uses an icon or image.)
Copied State
Use this section to customize the button’s confirmation text, media, animation, and feedback after a successful copy.

- Copied Text: Enter the text shown after a copy.
- Copied Media: Choose Icon, Image, Show Default State Media, or None.
- Copied Icon: Choose the icon shown after a copy. (Available when Copied Media is set to Icon.)
- Copied Image: Upload or select the image shown after a copy. (Available when Copied Media is set to Image.)
- Duration: Set how long the copied state lasts, in milliseconds.
- Copy Animation: Choose the animation that plays after a successful copy. You can choose from five different options.
- Feedback: Choose how else the copy is confirmed:
- Button Only
- Tooltip
- Toast
- Tooltip + Toast
- Tooltip Text: Enter the copy confirmation message shown in the tooltip. (Available when Feedback includes Tooltip.)
- Tooltip Placement: Place the tooltip above, below, to the left, or to the right of the button. (Available when Feedback includes Tooltip.)
- Toast Message: Enter the copy confirmation message shown in the toast. (Available when Feedback includes Toast.)
- Show Value in Toast: Show the copied value after the toast message. (Available when Feedback includes Toast.)
- Toast Position: Choose where the toast appears on the screen. (Available when Feedback includes Toast.)
- Preview Copied State: Preview the copied button and any enabled feedback in the Visual Builder so you can style them without copying. (Applies only in the builder.)
Tracking

- Analytics Event Name: Enter a tracking name such as coupon_copied to count how often visitors copy text. After each successful copy, the module adds the tracking name to your site’s data layer. The copied text stays out of analytics.
Note: To record copies in Google Analytics 4, create a Custom Event trigger in Google Tag Manager using the same name you entered in DiviFlash. Attach the trigger to a GA4 Event tag, then test it in Preview before publishing. Leave the field blank if you don’t need custom copy tracking.
Order: Change the module’s display order within its parent layout using Divi’s order settings.
Meta: Rename the module to identify it in the Divi Builder. This label is only visible to you.
Design Tab
The Design tab lets you style the button’s default and copied states, adjust its alignment, and customize the tooltip.

Alignment
- Button Alignment: Align the module to the Left, Center, or Right.
Container: Set the width, background, border, spacing, and shadow of the field and button container. Long values scroll within the field. (Available when Button Type is set to Field with Button.)
Value: Customize the value field’s font, background, border, and spacing. (Available when Button Type is set to Field with Button.)
Default State
Customize how the button looks before visitors copy the text.

- Icon Size: Adjust the default icon’s size. (Applies when the default state uses an icon.)
- Image Size: Adjust the image’s size. (Available when Media Type is set to Image.)
- Color: Set the icon’s color. (Applies when the default state uses an icon.)
You can use button background, button text, button border, button box shadow, button sizing, and button spacing.
Copied State

- Icon Size: Adjust the icon’s size. (Available when the copied state displays an icon.)
- Image Size: Adjust the image’s size. (Available when the copied state displays an image.)
- Color: Set the icon’s color. (Available when the copied state displays an icon.)
You can also use button background, button text, button border, button box shadow, button sizing, and button spacing to style the button.
Tooltip
Customize the message displayed near the button. (Applies when Content > Copied State > Feedback is set to Tooltip or Tooltip + Toast.)

- Background Color: Set the tooltip’s background color.
- Show Arrow: Show or hide the arrow pointing toward the button.
- Offset: Adjust the distance between the tooltip and button.
You can also use font, border, spacing, and box shadow to customize the tooltip’s text, border, spacing, and shadow.
Transform: Scale, rotate, move, or skew the module.
Animation: Apply an entrance animation and adjust its duration, delay, and other available options.
Advanced Tab
The Advanced tab provides Divi’s additional options for custom styling and advanced module configuration.
Note:
- On HTTPS websites, the module uses the browser’s modern clipboard. On HTTP websites, it uses an older copy method that works in most browsers.
- If a browser blocks the copy, the value appears selected below the button with the message “Press Ctrl+C to copy”.
- The module only copies. It doesn’t open links, so add a Divi Button module next to it if visitors should go somewhere afterward.
- Presets save Design tab settings only. Content settings, such as text, value, and feedback, stay on each module.
- The copied value is never stored or sent anywhere.
Need Help?
If you have any questions or need assistance, contact our support team at [email protected].