A small WordPress plugin to put your site on digital climate strike on Sept. 20th, 2019.
There's now an "official" WP plugin by 'Fight For the Future' with a lot of features, on the official WP-plugins directory. Since this here is my attempt to "scratch my own itch", you're probably be better off with the official version.
wp-climatestrike directory to your
Copy the file
wp-climatestrike/templates/climatestrike.html to your current theme directory's root and change it to your liking.
If you're ok with the default file, you won't need to copy it. The plugin will first look in the active theme for a file named
and will fall back to the file inside the plugin directory.
Activate the plugin through the admin panel.
There is an array "allowed_urls"
that's currently hard-coded. If the request uri matches these urls, the content is displayed.
are the legally required pages for sites in Germany. The "/wp-admin/" url is added, too, else even the login to the backend would be "striked".
The HTML file is a copy of the placeholder.html in Sebastian Gregers Kirby3 plugin.
wp-climatestrike is open-sourced software licensed under the MIT license. It is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment.
Copyright © 2019 Tom Arnold