Skip to main content

Clear Favorites

Updated over a week ago

The Clear Favorites feature in Dynamic Toolbox for Bricks allows users to remove all saved favorites with a single button click. It is useful in scenarios where a user needs to reset their selection, whether favorites are stored via cookies or user meta.

Settings

  • Scope: Defines whether favorites are cleared from the browser (cookie) or the user meta (user). It must match the scope used by the "Add to Favorites" element.

  • Key: Unique identifier of the favorites list to clear. It must match the key configured in the related favorites element.

  • Button Text: Customizable label for the clear action button.

  • Icon: Optional icon displayed on the button, with configurable alignment (left or right).

  • Show Confirmation: Prompts users with a confirmation message before clearing, preventing accidental clicks.

    • Confirmation Text: Message shown in the confirmation dialog.

Style

The element supports full Bricks styling features:

  • Button size, color, and layout options (e.g., block, circle)

  • Background and border customization

  • Text and icon alignment

  • Responsive spacing and padding controls

Compatibility with Other Features

Clear Favorites is designed to complement:

  • Add to Favorites / Add to Woo Wishlist: Clears lists created with those elements.

  • Favorites Action for Bricks Form: Ensures forms can be reset after submission or user action.

It supports all scopes and keys used in the broader favorites system, making it a versatile reset tool.

Usage Summary

  • Add the Clear Favorites element anywhere favorites might be managed.

  • Configure the correct scope and key to target the appropriate favorites list.

  • Customize button text, style, and confirmation behavior.

This feature improves UX by giving users a clean and controlled way to clear their favorites list when needed.

Did this answer your question?