Skip to content

Instantly share code, notes, and snippets.

@SteveJonesDev
SteveJonesDev / accessible-menu.php
Last active July 24, 2025 20:11
Accessible WordPress Navigation Menu
<div class="menu-container">
<button class="menu-button" aria-expanded="false" aria-controls="site-header-menu" aria-label="<?php esc_attr_e( 'Menu', 'textdomain' ); ?>"></button>
<div id="site-header-menu" class="site-header-menu">
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'container' => 'nav',
'container_class' => 'main-navigation',
'container_id' => 'site-navigation',
@coughski
coughski / pollen_forecast.js
Last active April 13, 2023 06:17
Scriptable widget displaying daily pollen forecast
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: tree;
/*** SETUP ***
* Register for a free Accuweather API Key at https://developer.accuweather.com
* Enter your API key in the field below
*
* Use the Locations API to determine the location key of your city at http://dataservice.accuweather.com/locations/v1/search
* Paste the location key in the appropriate variable below