Title: Random Christmas Fact Widget
Author: Monica Haught
Published: <strong>27 Februari 2015</strong>
Last modified: 23 Juli 2026

---

Cari plugin

![](https://ps.w.org/random-christmas-fact-widget/assets/banner-772x250.png?rev=
1101512)

![](https://ps.w.org/random-christmas-fact-widget/assets/icon-256x256.png?rev=1101512)

# Random Christmas Fact Widget

 Oleh [Monica Haught](https://profiles.wordpress.org/monkeymays/)

[Unduh](https://downloads.wordpress.org/plugin/random-christmas-fact-widget.2.0.0.zip)

 * [Detail](https://id.wordpress.org/plugins/random-christmas-fact-widget/#description)
 * [Ulasan](https://id.wordpress.org/plugins/random-christmas-fact-widget/#reviews)
 *  [Instalasi](https://id.wordpress.org/plugins/random-christmas-fact-widget/#installation)
 * [Pengembangan](https://id.wordpress.org/plugins/random-christmas-fact-widget/#developers)

 [Bantuan](https://wordpress.org/support/plugin/random-christmas-fact-widget/)

## Deskripsi

The Random Christmas Fact Widget displays one of 40 Christmas facts whenever a page
loads.

Add the widget to any registered widget area, optionally give it a title, and the
plugin will display a randomly selected fact. The output has no custom CSS, so it
naturally inherits the typography and styling of your active theme.

Features:

 * Displays one random fact from a collection of 40 Christmas facts.
 * Works in any registered WordPress widget area.
 * Includes an optional widget title.
 * Supports multiple widget instances on the same page.
 * Adds no custom CSS.
 * Uses lightweight modern JavaScript.
 * Preserves the original widget ID so existing placements and settings continue
   to work after updating.

For more Christmas resources, visit [ChristmasWebmaster.com](https://christmaswebmaster.com/).

## Instalasi

 1. Upload the plugin files to the `/wp-content/plugins/random-christmas-fact-widget/`
    directory, or install the plugin through the WordPress Plugins screen.
 2. Activate the plugin through the **Plugins** screen in WordPress.
 3. Go to **Appearance > Widgets**.
 4. Add the **Random Christmas Fact** widget to the desired widget area.
 5. Optionally enter a widget title and save.

## Tanya Jawab

### Can I customize the widget title?

Yes. Each widget instance includes an optional title field.

### Does the plugin add any styling?

No. The fact inherits the typography and styling of your active theme.

### Can I add the widget more than once?

Yes. Multiple instances can appear on the same page, and each instance selects its
own random fact.

### Will my existing widget placement be preserved when I update?

Yes. Version 2.0.0 keeps the original `cw_randomtext` widget ID so WordPress should
retain existing widget placements and saved titles.

## Ulasan

![](https://secure.gravatar.com/avatar/d0aabec08660f2b3c9677fbc513d99a12ff798759b17d5f0a2adbf66ef34c57e?
s=60&d=retro&r=g)

### 󠀁[Love this fun little Christmas Plugin](https://wordpress.org/support/topic/love-this-fun-little-christmas-plugin/)󠁿

 [christinahills](https://profiles.wordpress.org/christinahills/) 5 Desember 2023

What a fun plugin! Displays a nice little Christmas fact on my sidebar and gets 
us in the holiday spirit! Thanks for creating it and for keeping it updated -Christina
Hills

 [ Baca semua 1 ulasan ](https://wordpress.org/support/plugin/random-christmas-fact-widget/reviews/)

## Kontributor & Pengembang

“Random Christmas Fact Widget” adalah perangkat lunak open source. Berikut ini mereka
yang sudah berkontribusi pada plugin ini.

Kontributor

 *   [ Monica Haught ](https://profiles.wordpress.org/monkeymays/)

[Terjemahkan “Random Christmas Fact Widget” dalam bahasa Anda.](https://translate.wordpress.org/projects/wp-plugins/random-christmas-fact-widget)

### Tertarik mengembangkan?

[Lihat kode](https://plugins.trac.wordpress.org/browser/random-christmas-fact-widget/),
periksa [repositori SVN ](https://plugins.svn.wordpress.org/random-christmas-fact-widget/),
atau mendaftar ke [log pengembangan](https://plugins.trac.wordpress.org/log/random-christmas-fact-widget/)
melalui [RSS](https://plugins.trac.wordpress.org/log/random-christmas-fact-widget/?limit=100&mode=stop_on_copy&format=rss).

## Log Perubahan

#### 2.0.0 – 2026-07-22

 * Fixed a fatal error on PHP 8 by removing the obsolete `create_function()` callback.
 * Replaced the deprecated PHP 4-style widget constructor with `__construct()`.
 * Replaced the obsolete `$this->WP_Widget()` call with `parent::__construct()`.
 * Removed `extract()` from widget output handling.
 * Added proper sanitization for saved widget titles.
 * Added proper escaping for admin and frontend output.
 * Replaced `document.write()` with safe DOM-based JavaScript.
 * Added support for multiple widget instances on the same page.
 * Loads the JavaScript only when the widget is displayed.
 * Added automatic script cache busting.
 * Preserved the original widget ID for backward compatibility.
 * Updated plugin metadata, installation instructions, FAQ, and documentation.

#### 1.3 – 2025-06-28

 * Maintenance release.

#### 1.2 – 2022-09-08

 * Compatibility update.

#### 1.1 – 2018-10-27

 * Minor improvements.

#### 1.0 – 2015-02-23

 * Initial release.

## Meta

 *  Versi **2.0.0**
 *  Diperbarui **3 bulan yang lalu**
 *  Instalasi Aktif **10+**
 *  Versi WordPress ** 6.0 atau yang terbaru **
 *  Diuji hingga **7.0.7**
 *  Versi PHP ** 7.4 atau yang terbaru **
 *  Bahasa
 * [English (US)](https://wordpress.org/plugins/random-christmas-fact-widget/)
 * Tag
 * [christmas](https://id.wordpress.org/plugins/tags/christmas/)[holiday](https://id.wordpress.org/plugins/tags/holiday/)
   [sidebar](https://id.wordpress.org/plugins/tags/sidebar/)[widget](https://id.wordpress.org/plugins/tags/widget/)
 *  [Tampilan lanjut](https://id.wordpress.org/plugins/random-christmas-fact-widget/advanced/)

## Rating

 5 dari 5 bintang.

 *  [  1 ulasan 5-bintang     ](https://wordpress.org/support/plugin/random-christmas-fact-widget/reviews/?filter=5)
 *  [  0 ulasan 4-bintang     ](https://wordpress.org/support/plugin/random-christmas-fact-widget/reviews/?filter=4)
 *  [  0 ulasan 3-bintang     ](https://wordpress.org/support/plugin/random-christmas-fact-widget/reviews/?filter=3)
 *  [  0 ulasan 2-bintang     ](https://wordpress.org/support/plugin/random-christmas-fact-widget/reviews/?filter=2)
 *  [  0 ulasan 1-bintang     ](https://wordpress.org/support/plugin/random-christmas-fact-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/random-christmas-fact-widget/reviews/#new-post)

[Lihat semua ulasan](https://wordpress.org/support/plugin/random-christmas-fact-widget/reviews/)

## Kontributor

 *   [ Monica Haught ](https://profiles.wordpress.org/monkeymays/)

## Bantuan

Ada yang ingin dikatakan? Butuh bantuan?

 [Lihat forum bantuan](https://wordpress.org/support/plugin/random-christmas-fact-widget/)

## Donasi

Apakah Anda ingin mendukung pengembangan plugin ini?

 [ Donasi untuk plugin ini ](https://christmaswebmaster.com/)