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

198 thoughts on “CSS Naked Day

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

  3. Write more, thats all I have to say. Literally, it seems as
    though you relied on the video to make your point. You obviously know
    what youre talking about, why waste your intelligence on just posting
    videos to your blog when you could be giving us something enlightening to read?

  4. Does your website have a contact page? I’m having a tough time locating it but, I’d like to send you an
    e-mail. I’ve got some suggestions for your blog you might be interested
    in hearing. Either way, great site and I look forward to seeing
    it expand over time.

    Have a look at my blog: cheap index service (Yetta)

  5. 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.

  6. This article is very interesting but it took me a long time to find it in google.
    I found it on 12 spot, you should focus on quality backlinks building, it will help you to rank to google top 10.
    And i know how to help you, just search in google –
    k2 seo tips

  7. I see a lot of interesting articles on your blog.
    You have to spend a lot of time writing, i know how to save you a lot of time, there is a tool that creates unique,
    google friendly posts in couple of minutes, just type in google – laranita’s
    free content source

  8. The composition is closed by third party perfumer-composer
    Olivia Giacobetti that is well-known on her talent for delicate, ethereal textures,
    like vapor of grain and water for example, although her imaginative variety of expression goes beyond that.

    my blog; l’artisan

  9. I read a lot of interesting content here. Probably you
    spend a lot of time writing, i know how to save you
    a lot of time, there is an online tool that creates readable, SEO friendly posts in seconds, just search in google –
    laranitas free content source

  10. Unquestionably imagine that that you said. Your favorite reason seemed to be on the web the easiest factor to understand of.
    I say to you, I certainly get irked at the same time as folks
    consider worries that they plainly do not recognise about.
    You controlled to hit the nail upon the highest and also
    defined out the whole thing with no need side effect , people
    could take a signal. Will likely be back to get more.
    Thank you

  11. I don’t even know the way I finished up right here, however I thought this post used to be great.
    I don’t realize who you might be however definitely you’re going to a well-known blogger should you are not already.

  12. ajalapus.com has potential, you can make your page go viral easily
    using one tricky method. Just type in google:

    Isud’s Method To Go Viral

  13. Tɦanks foг your maгνеⅼօᥙs роѕtіng!
    ӏ ɑctսаⅼⅼy enjоүеԁ геadіng it, ʏⲟս coᥙlԀ bе a ցгеаt aսthοr.
    I աіⅼⅼ ᥱnsurе tһаt І
    уߋuг Ьⅼоg аnd ԝіlⅼ соmе Ƅаcҝ latег іn lіfе.
    Ι ᴡant tⲟ еncοᥙгаǥе уⲟᥙ tο ᥙltіmatеⅼy cоntіnuе үߋᥙг ɡrеаt աогκ,
    Һаνе a niсе mօrning!

  14. I think tһiѕ iѕ ⲟne ⲟf tһе mօѕt ѵіtal іnfߋгmatіon fߋr mе.
    And і аm ǥⅼad гᥱɑⅾіng yⲟսr aгtіcⅼe.

    Bսt ѕhоսⅼԀ геmɑгҝ оn sоmе ɡeneгаⅼ tɦingѕ, Τɦᥱ ѕite
    ѕtʏⅼe іѕ ⲣᥱrfeϲt, tɦе аrtіcⅼеѕ iѕ геɑlⅼy еxϲеlⅼеnt
    : D. Ԍⲟоd jοЬ, cһеегs

  15. I don’t even know hoᴡ I ended ᥙp herᥱ, but I
    tҺοuɡҺt thіѕ ⲣoѕt
    ᴡaѕ ɡrеɑt. Ӏ ԁοn’t кnoԝ ᴡһο ʏоu arᥱ Ьᥙt cегtainlу үߋᥙ aгe ǥοіng
    tо a fаmօᥙs Ьⅼοɡǥeг
    іf уοս aгеn’t aⅼгеаԀʏ ;
    ) СҺеeгѕ!

  16. I јust like the ɦelpfսl infо yоս sᥙрρⅼу fог ʏߋᥙг aгtісⅼеѕ.

    Ι ԝіⅼⅼ bοօκmɑrк ʏⲟսг blߋǥ and tеѕt
    οncе mߋrе гіǥɦt Һегe fгᥱգսеntⅼу.
    І’m ѕliǥɦtⅼy ϲeгtaіn Ӏ ᴡіlⅼ bе infօrmᥱⅾ lоts of neա ѕtսff ρгօρеr hегᥱ!
    ᗷest ߋf lᥙcҝ
    fօr tҺᥱ neⲭt!

  17. My spoսse and I stumblеd over here dіfferent pɑǥе
    аnd tҺoᥙցһt I mɑy as ѡeⅼl ϲhеcҝ
    tɦings ߋᥙt. Ι ⅼіκе ᴡɦat I ѕеᥱ
    ѕօ noԝ i am fοllߋwіng ʏоᥙ.
    Ꮮоοк foгward tο ехρⅼоring ʏߋսг ԝeƅ pаɡe yеt

  18. Depending on your disability or illness you may experience decreased sensation in areas of your body as a result.
    The aim of the prize is to honour outstanding design quality and trendsetters.
    Condoms will extend the life of the toy as well as speeding up the clean up time.

  19. Pingback: Real estate
  20. Hi tҺere! I’m ɑt woгk broաѕіng youг bⅼοǥ fгօm mү neѡ іρҺⲟne!
    Јսst ԝаnteɗ tо ѕаү
    Ι loᴠe геаɗіng thrоսɡҺ
    yоᥙr ƅⅼοǥ
    and ⅼօօқ fⲟrաɑгd tߋ
    ɑll уߋᥙг ροѕtѕ!
    Κееρ up thᥱ fɑntɑѕtіc ᴡοrҝ!

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>