Skip to content

Instantly share code, notes, and snippets.

View shelleyvadams's full-sized avatar

Shelley V. Adams shelleyvadams

View GitHub Profile
@pommiegranit
pommiegranit / mywidget-basic.php
Last active August 30, 2018 12:54
Playing with WordPress widgets
<?php
/*
Plugin Name: My Widget
Plugin URI: http://mydomain.com
Description: My first widget
Author: Me
Version: 1.0
Author URI: http://mydomain.com
*/
@wpscholar
wpscholar / functions.php
Last active October 20, 2024 14:01
Enqueueing IE conditional stylesheets in WordPress the right way
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' );
/**
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE.
* IE10 and up does not support conditional comments in standards mode.
*
* @uses wp_style_add_data() WordPress function to add the conditional data.
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/
@mbostock
mbostock / .block
Last active December 1, 2024 10:48 — forked from mbostock/.block
Pedigree Tree
license: gpl-3.0