Skip to main content

Clear All Favorites

Updated over 10 months ago

Available since version 3.3.0 of Dynamic Content for Elementor

The Clear All Favorites widget lets users remove all saved favorites with a single button click. Designed to complement the Add to Favorites widget, this feature fully controls the user's favorite items, improving user experience and interaction flows on dynamic websites.

Settings

  • Scope

    • User: Favorites are stored per logged-in user. Only works for authenticated users.

    • Cookie: Favorites are stored in the browser using cookies, suitable for guest users.

  • Key

    • Defines the unique identifier for the favorites list to clear.

    • Multiple Clear Favorites widgets can target different lists by using custom keys (e.g., my_favorites ).

  • Button Text

    • Customizable label for the button (e.g., Clear Favorites, Reset Selection, etc.).

  • Icon

    • Optional icon to display within the button. Supports Elementor Icons Manager.

  • Icon Position

    • Before: Icon appears before the text.

    • After: Icon appears after the text.

  • Icon Size & Spacing

    • Fully adjustable via responsive controls for size and horizontal spacing between icon and text.

  • Show Confirmation

    • Toggle to enable a confirmation prompt before clearing favorites.

  • Confirmation Text

    • Customizable message shown in the confirmation dialog (e.g., Are you sure you want to remove all favorites?).

Style

  • Alignment

    • Controls the alignment of the button: Left, Center, or Right.

  • Typography

    • Full control over font family, size, weight, and line-height for button text.

  • Colors

    • Text and background color settings for both normal and hover states.

  • Border and Radius

    • Optional border settings, including color, width, and corner radius.

  • Box Shadow

    • Add visual emphasis through shadow effects.

  • Padding

    • Define internal spacing for the button element.

Compatibility with Other Features

This widget integrates smoothly with the Add to Favorites widget, enabling a complete “favorite and unfavorite” interaction cycle. While not technically required, using both widgets together is recommended to offer users a coherent and intuitive experience.

Usage Summary

Use the Clear All Favorites widget whenever you want to allow users to reset their favorites list. Whether you are building a wish list, a shortlisting tool, or a selection-based interface, this widget ensures seamless management and cleanup of saved items.

Did this answer your question?