Legal Age Sign

外掛說明

The Legal Age Sign plugin provides a dynamic, live-updating compliance sign for websites selling age-restricted products. It automatically calculates the exact cutoff date based on the visitor’s local device time and your custom age requirements (e.g., 18 or 21). The sign features a live clock and updates the “Born on or before” date automatically at midnight without requiring a page refresh.

Features

  • Customizable Age Limit: Set the minimum required age directly in the settings, and the math will automatically adapt.
  • Live Time & Date: Displays the visitor’s current local date and time.
  • Auto-Updating Birth Date: Automatically calculates the required cutoff date in real-time.
  • Fully Customizable: Change warning text, phone numbers, and images directly from the WordPress dashboard.
  • Theme Integration: Automatically inherits your website’s default fonts and text colors to blend seamlessly with your active theme.
  • Portable Images: Default compliance images are packaged directly inside the plugin.

Usage

To display the sign on any Page, Post, or Widget area, simply insert the following shortcode:

[legal_age_sign]

Configuration & Settings

You do not need to edit any code to change the text, age, or images on the sign.

  1. In your WordPress dashboard navigation menu, go to Settings > Age Sign Settings.
  2. Age Requirement: Enter the minimum age required to purchase your products (e.g., 18, 21).
  3. Images: By default, the plugin uses its built-in images. To override them, paste the full URL of any image from your WordPress Media Library into the text boxes.
  4. Warning Text: Customize the product type (e.g., “ALCOHOL!”, “TOBACCO!”, “VAPE PRODUCTS!”), the violation text, and the local reporting phone number.
  5. Click “Save Changes” and your sign will instantly update across your entire site.

安裝方式

  1. Download or locate the legal-age-sign.zip file.
  2. Log into your WordPress Dashboard.
  3. Navigate to Plugins > Add New (or Add New Plugin).
  4. Click the “Upload Plugin” button at the top of the screen.
  5. Select the legal-age-sign.zip file and click “Install Now”.
  6. Once installed, click “Activate Plugin”.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Legal Age Sign〉的開發相關工作。

參與者

將〈Legal Age Sign〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄