Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

❄️ Let It Snow (or not) — All about Jetpack Holiday Snow

Herve Family
1 1 0
  • Note: this option is no longer available in the Jetpack plugin. If your site is hosted on WordPress.com, however, you will continue to have the option to display snow on your site during the holiday season.

    It’s that time of the year again. Starting today and until January 4th, the Jetpack plugin will add an option at the bottom of the General settings screen in your dashboard. Turn that option on, and snow will fall on your blog ? !

    Of course, like with all Jetpack features, we’ve added some filters allowing you to extend or customize it. Here is all you need to know about Holiday Snow in Jetpack.

    I don’t want snow on my Jetpack site

    No worries! The option is off by default. It will only be enabled if you go to Settings > General in your dashboard, and check the box. If you checked it last year, Jetpack will remember your choice and enable it again this year.

    Jetpack Snow option

    Note: that checkbox only appears between December 1st and January 4th, when the feature is actually available and visible on your site. However, if you’d like to check the status of the Snow option on your site at any time during the year, you can access the setting under Jetpack > Settings.

    I don’t want to see that option on my site

    If you don’t even want to see the option, you can add the following code to a functionality plugin:

    /** * Remove the Snow option from your dashboard. * * That option appears in Settings > General between December 1st and January 4th. * It is off by default. * This filter removes it completely. */add_filter( 'jetpack_is_holiday_snow_season', '__return_false' );

    Why January 4th? I want snow to fall on my blog until April 1st!

    That’s not a bad idea. You can use the jetpack_is_holiday_snow_season filter to do just that:

    /** * Show the Snow option until April 1st * * By default, the option disappears on January 4th * * @return bool true|false Is it holiday season? */function jeherve_snow_fools() {$today          = time();// First snow day. December 1st here.$first_snow_day = mktime( 0, 0, 0, 12, 1 );// Last Snow day. April 1st in our example.$last_snow_day  = mktime( 0, 0, 0, 4, 1 );// $snow will return false if we're outside holiday season.$snow = ( $today >= $first_snow_day || $today < $last_snow_day );return $snow;}add_filter( 'jetpack_is_holiday_snow_season', 'jeherve_snow_fools' );

    Your snowflakes are way too small. I have my own snow, can I use it instead of yours?

    Sure thing. You’ll want to use the jetpack_holiday_snow_js_url filter, like so:

    /** * Enqueue our own snow Javascript file. * * @return string Snow js file. */function jeherve_custom_snow() {// Your custom Snow JS file$snowstorm_url = plugins_url( 'my_own_snow.js', __FILE__ );return $snowstorm_url;}add_filter( 'jetpack_holiday_snow_js_url', 'jeherve_custom_snow' );

    I’d like my readers to be able to turn snow on and off as they please

    There is a plugin for that! Jetpack Holiday Snow Opt-In only shows snow if your reader has opted in by clicking on a snowflake appearing in the top right corner of your site. Hopefully this will make it to Jetpack itself at some point.

    I don’t want to see any snow, anywhere

    You can use this Chrome Extension to hide snow from all Jetpack and WordPress.com sites.

    Why would someone want to disable snow on their site? It looks great!

    While it does look nice, animations like falling snow may cause discomfort, headaches, and sometimes even seizures to some people. Consider this before to turn on the Snow option on your site.

    Any other questions? Let me know!


Gli ultimi otto messaggi ricevuti dalla Federazione
  • @passthejoe.wordpress.com

    I thought about starting a blog as a Fediverse account

    The good news is, you’ve already enabled the Fediverse option for your WordPress site so it’s already done for you. All you have to do is blog! Arguably that’s the hardest part 😉

    read more

  • @davemart.in

    I like the general idea. This is definitely a problem in WordPress today.

    I wonder if the solution could be to better surface the command palette? The palette already allows you to quickly find what you’re looking for, without having to look through many menus. It’s also extensible so plugins can hook into and add their own menus.

    It does miss 3 things though:

    The default view remains cluttered with all the available menus.One needs to know an obscure keyboard shortcut (Cmd+K) to access the palette.It’s not available on mobile.

    Maybe we could have a better, clutter-free default view of the dashboard, with only the command palette’s main input field. What do you think?

    read more

  • It’s hard to believe but after 14 years, the Stargate franchise is back. It won’t be a reboot, it’s backed by Amazon and folks from the original series (Brad Wright, Joe Mallozzi, Martin Gero) are involved in the project. I probably shouldn’t get too excited, but… It sounds promising?

    Youtube Video

    It’s funny how they’re completely ignoring the Stargate Origins miniseries in their announcement. It looks like everyone agrees it’s better to forget about it. 🙂

    read more

  • “Instead of investing in advertising we invest in product development”

    Free Search is a Trap | Kagi’s CEO Vlad on Building a New Internet

    This resonates with me a lot. I’m a happy user of @kagihq, and it was good to hear its founder address some of the questions I’ve been asking myself about its future and its vision. Great interview @ente!

    read more

  • Take-home assignments are dead, “one prompt away” is one prompt too far, and what we should do next

    AI isn’t eliminating some boring, mechanical part of learning. It’s replacing the very core.

    University education as we know it is over

    read more

  • IA: La mort programmée du flow

    En obligeant notre cerveau à basculer en permanence d’une tâche à l’autre, on l’épuise considérablement.

    […]

    L’IA nous force à osciller constamment entre, d’une part, l’hyper-vigilance requise pour la formulation des prompts et la vérification critique, et, d’autre part, l’hypo-vigilance, cet ennui intense induit par la lecture passive de la prose sans âme et sans intention générée par la machine.

    L’IA me fait gagner 5 heures par semaine… Mais pourquoi suis-je aussi épuisé?@babeleur

    read more

  • Thumbs Up 👍

    Clear and effective human communication is one of the hardest things to get right. The widespread adoption of emojis only made the problem worse. Instead of adding context, by, you know, using words, like these, emojis manage to strip even more context, sometimes paradoxically by adding layers of confusion.

    Thumbs Up 👍

    read more

  • Over at WordPress.com, we recently added a new feature to the WordPress.com Reader. You can now build a list of blogs you like, and recommend them to others.

    What if your readers could help your blog grow? What if the writers you love could introduce their audience to yours?

    That’s the idea behind recommended blogs, a feature now available in the WordPress.com Reader that lets you share the blogs you enjoy most with your own audience.

    Let’s Grow Together: Introducing Recommended Blogs 

    Since the WordPress.com Reader lets you follow any site that supports RSS, you can recommend blogs on any platform or CMS. As long as the site includes an RSS feed, you’ll be good to go!

    You can view my recommended blogs in my WordPress.com Reader profile.

    Screenshot of a Recommended blogs list on WordPress.com

    Ever the champion of the Open Web, @davew asked me if one could fetch those recommended blogs to show in their own app or tools. Since this is WordPress.com, recommended blogs are indeed available via the WordPress.com REST API. There are different endpoints one can use to fetch and show recommended blogs. All you need to get started is a WordPress.com username.

    Side-note: WordPress.com usernames are also Gravatar usernames, so once you have a Gravatar username, you can show all sorts of information the person chose to make public in their profile:

    Check our API documentation to find out more.

    Once you have a WordPress.com username, you can make a request to rest/v1.2/read/lists/<username>/recommended-blogs/items to get a list of their recommended blogs:

    Screenshot of a request to the Recommended blogs items endpoint on WordPress.com

    We also have another endpoint you can use to export the list in OPML format: wpcom/v2/read/lists/<list-ID>/export. You can get that list ID from the API response just above. That can be handy if you then want to import the list in your own Reader!

    Screenshot of the API response when requesting an export of a list

    If you haven’t tried the WordPress.com Reader yet, this could be a good opportunity to give it a try!

    read more
Post suggeriti