CSS Naked Day

CSS Naked Day plugin for WordPress automatically strips off XML/HTML stylesheet references, embedded stylesheets and inline styles—all without editing your template! It also provides a function to determine whether it is the 9th of April on the recommended worldwide 48-hour CSS Naked Day period or just your local 24-hour period if ever you want to automate a message telling viewers why your site is in the nude.

Download Plugin

Usable Functions

bool is_naked_day(void)

returns true when it is the 9th of April on the time span you’ve set, false otherwise. Sample usage:

  if (is_naked_day()) {
?>  <h3>What happened to the design?</h3>
    <p>To know more about why styles are disabled on this website
      visit the <a href="http://naked.dustindiaz.com" title="Web
      Standards Naked Day Host Website">Annual CSS Naked Day</a>
      website for more information.</p>

Known Issues

The plugin would also delete occurences of inline styles (style="") that are intended as text and not as the attribute for styling markup itself. For example, in CSS tutorial pages.

Resolved in Version 1.1.2

In versions prior to 1.1.2, the plugin would cause errors for some inline styles that have escaped quotation marks of the same type as the attribute value delimiter.

For example:

style="font-family:\"Lucida Grande\",\"Lucida Sans Unicode\",sans-serif;"

… would leave …

Lucida Grande\",\"Lucida Sans Unicode\",sans-serif;"

… in the markup, as the regular expression could only remove code from the style attribute only up to the first matching quotation mark without regard to the escaped ones.

Change Log

Version 1.2
Released 4 April 2008


  • Changed CSS Naked Day date to reflect event move from April 5 to 9.
Version 1.1.2
Released 6 April 2007


  • Fixed regex for patterns to avoid possible conflicts.
  • Fixed known issue about escaped quotation marks in inline styles.
Version 1.1.1
Released 5 April 2007


  • Fixed stylesheet reference regex/consuming all <link> elements before targetted one.
Version 1.1
Released 31 March 2007


  • Added option to activate only during the 24-hour local time.
  • Added configuration page.
Version 1.0.1
Released 30 March 2007:


  • Fixed embedded stylesheet regex/conflict with delimiter.
Version 1.0
Released 28 March 2007
  • First release of the CSS Naked Day plugin.


Copyright © 2007-2008 Aja Lorenzo Lapus

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Read the full license


193 responses to “CSS Naked Day”

  1. […] 当然,如果你使用的是WordPress,且像我一样不喜欢麻烦的话,这里有专门的CSS Naked Day 的插件帮你完成这项功能,非常简单!点击打开WordPress CSS Naked Day插件页面下载后启用即可. […]

  2. […] To start the Naked Day automatically via-PHP function, you can use following function. Put it in your functions.php of your template or header.php. Alternative you can use the Plugin „WordPress Naked Day“. […]

  3. […] 有关CSS Naked Day的插件 如果你使用的是WordPress,直接可以使用WordPress CSS Naked Day插件页面下载后启用即可. […]

  4. […] facilitar esto, también he usado el plugin creado por Aja Lapus, para que todo vuelva a la normalidad cuando pase la […]

  5. […] Naked Day 的插件帮你完成这项功能,非常简单!点击打开WordPress CSS Naked Day插件页面下载后启用即可. 除了WordPress,还会有其他开源程序的插件,可以在CSS Naked […]

  6. LDS Bamberg Avatar

    In Bamberg wir unter http://www.lds-bamberg.de auch volleyball gespielt.

  7. […] 有关CSS Naked Day的插件 如果你使用的是WordPress,直接可以使用WordPress CSS Naked Day插件页面下载后启用即可. […]

  8. Physioneum Avatar

    Physiotherapie Krankengymnastik

  9. conecom Avatar

    Webdesign in Bamberg

  10. Massiv Holz Avatar

    Brennholz Massiv-Holz Bamberg

  11. […] a cualquier hoja de estilos del sitio, si usan WordPress en un servidor propio pueden usar este plugin del CSS Naked Day que hará todo el trabajo sin editar código, o hacer lo a mano editando la […]

  12. […] 如果你使用的是WordPress,可以使用WordPress CSS Naked Day外掛程式頁面下載後啟用即可。 […]

  13. […] uporabljate WordPress, potem je reÅ¡itev zelo enostavna. Plugin – CSS Naked Day vas reÅ¡i odvečne CSS navlake in vaÅ¡ blog postane gol, kot Å¡e ni bil nikoli. Ko se konča to […]

  14. […] Hvala hadu, da me je opozoril na vtičnih (plugin) za wordpress s katerim svojo WP spletno stran enostavno slečemo. Link na vtičnik tukaj. […]

  15. […] of my site during CSS Naked Day. Also, a “thank you” goes to Aja Lupas for creating the WordPress CSS Naked Day plugin that I used. « Proposed Units of […]

  16. […] Hvala hadu, da me je opozoril na vtičnih (plugin) za wordpress s katerim svojo WP spletno stran enostavno slečemo. Link na vtičnik tukaj. […]

  17. Seo Delo Avatar

    An excellent plug-in holiday Naked Day:)
    Very interesting holiday in the Internet … will definitely participate in next year’s April 9!

  18. […] 用Wordpress的朋友可以使用WordPress Naked Day Plugin。 This entry was posted in Web Standard and tagged CSS, Naked Day. Bookmark the permalink. ← 移居MT主机 第七期Web标准化交流会开始报名 → […]

  19. Taylor Satula Avatar

    Hey Everyone, Dustin Diaz seems to not be running Naked CSS Day anymore so I have taken over the job. I will be running it for the foreseeable future.

    Please update links.

  20. […] ???????WordPress,????WordPress CSS Naked Day?????????????? […]

  21. […] gibt es für die faulen/ vergesslichen WordPressadmins auch ein Plugin das sich um den Blogstrip […]

  22. Kit Avatar

    Hmm it appears like your site ate my first comment (it was super long) so I
    guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying
    your blog. I too am an aspiring blog writer but I’m still new to the whole thing.

    Do you have any points for novice blog writers?
    I’d definitely appreciate it.

  23. […] or Managed WordPress: There is a CSS Naked Day WordPress Plugin by Aja Lapus and other manual techniques, including the […]

  24. SEO Matej Avatar

    Thanks for this plugin

  25. […] Don’t forget to sign up. It’s very simple. There are directions, and even a WordPress Plugin that will do all the work for […]

  26. Martin M. Avatar

    Grat, thanks!!!

  27. e Stave Avatar

    Greeat plugin! installed and working!

  28. Matija Zajsek Avatar

    Great article, useful.

  29. Seo-Praktik Avatar

    Thank you, useful.

  30. Multimedija Avatar

    Thnx, great code

  31. bilgi Avatar

    thanks for plugin

  32. Stavnice Avatar

    Greeat plugin!

  33. kladionica Avatar

    Thank you, useful.

  34. Spletne Stavnice Avatar

    Great article, useful.

  35. Jesus Gott Avatar

    I am waiting for the next CSS naked day 🙂
    You made my day.

  36. Matej V Avatar

    Very good article, indeed!
    I will put you on my “special read feed”!

  37. Vendi Digital Avatar

    This is a great, thank you for sharing!

  38. […] leto zapored praznuje 9. aprila. ?e uporabljate WordPress, potem je rešitev zelo enostavna. Vti?nik CSS Naked Day vas reši odve?ne CSS navlake in vaš blog postane gol, kot ni bil […]

  39. Maverick Avatar

    Thanks for the plugin…still using it on my site

  40. Lorberlabs Avatar

    Great article about this plugin 🙂

  41. […] mostrare il loro <body> come la natura l’ha fatto ? Per i più pigri esiste persino un plugin per WordPress che automatizza il tutto. In breve, ti basta disattivare (commentare?) tutti i fogli di stile del […]

Leave a Reply

Your email address will not be published. Required fields are marked *