The Lunar Hair Almanac

Free Moon Phase Widget for Your Website

Add a free moon phase widget to your website or blog. It shows tonight's moon, how much is lit, and the next full and new moon. Copy, paste, and you're set.

Want a free moon phase widget on your website? This one shows tonight’s moon, how much of it is lit, and the dates of the next full and new moon. It updates on its own, works on any site that lets you paste HTML, and takes about a minute to add.

Moon phase by The Lunar Hair Almanac
Moon phase by The Lunar Hair Almanac

What the widget shows

  • Tonight’s moon, drawn to match the real phase
  • The phase name and how much of the Moon is lit
  • The date of the next full moon, with its traditional name
  • The date of the next new moon

Dates show in each visitor’s own time zone, and the widget refreshes itself every hour while the page is open.

Get the code

Pick a style, copy the code, and paste it where you want the widget to appear.

Dark

<a class="lha-moon-widget-embed" href="https://thelunarhairalmanac.com/" data-theme="dark">Moon phase by The Lunar Hair Almanac</a>
<script src="https://thelunarhairalmanac.com/wp-content/themes/the-lunar-hair-almanac/embed/moon-phase.js" async></script>

Light

<a class="lha-moon-widget-embed" href="https://thelunarhairalmanac.com/" data-theme="light">Moon phase by The Lunar Hair Almanac</a>
<script src="https://thelunarhairalmanac.com/wp-content/themes/the-lunar-hair-almanac/embed/moon-phase.js" async></script>

The first line is a small credit link to our site, and it’s also what tells the widget where to appear. Keep it in place and the widget shows up. If the link is removed or changed, the widget won’t load.

How to add it to your site

WordPress

In the block editor, add a Custom HTML block where you want the widget and paste the code. For a sidebar or footer, add a Custom HTML block under Appearance, then Widgets.

Squarespace

Edit the page, add a Code block, and paste the code. Squarespace only runs scripts in Code blocks on some plans, so if the widget doesn’t appear, check your plan’s code settings.

Shopify

In the theme editor, add a Custom Liquid section to the page or footer and paste the code.

Wix

Add an Embed Code element, choose Embed HTML, and paste the code. Give the element enough height for the card, about 420 pixels.

Anything else

If your site lets you paste HTML into a page, sidebar, or footer, the widget will work there too.

Frequently asked questions

Is the moon phase widget free?

Yes. You don’t need an account, and it costs nothing to use.

How accurate is it?

The phase times are calculated with the same astronomy library we use for our calendars, so the next full and new moon times are accurate to within a few minutes. The percentage lit is within a couple of points of the true value at any moment.

Will it slow down my site?

It’s one small script with no images to download. It doesn’t set cookies or track your visitors.

Can I change how it looks?

Choose dark or light by setting data-theme to “dark” or “light” in the code. The widget sizes itself to fit narrow spaces like sidebars.

Where does the full moon name come from?

The names follow the traditional almanac list, from the Wolf Moon in January to the Cold Moon in December. Our December moon guide covers where the Cold Moon got its name.

Why does the full moon look bigger some months?

The Moon’s orbit isn’t a perfect circle, so some full moons happen closer to Earth than others. Here’s how supermoons and micromoons work.

The widget comes from The Lunar Hair Almanac, where we make a printable lunar hair calendar for timing haircuts by the Moon. If you’d like to try planning your cuts that way, start with how to find the best days to cut your hair each month.

The 2027 Lunar Hair Almanac

Ready to try the system?

The Lunar Hair Almanac's printable calendar covers the full year, January through December 2027.

Get the 2027 Almanac on Etsy