Skip to content

Instantly share code, notes, and snippets.

@chrismademe
chrismademe / JSON.php
Last active December 23, 2017 18:25
JSON output Class
<?php
class JSON {
// Options array
private $options = array();
/**
* Construct
*
@chrismademe
chrismademe / wp-wc-get-tagged-products.php
Last active June 8, 2016 15:39
Get Products with a particular Tag (WooCommerce)
<?php
// Get tagged products
$featured_products = get_posts(array(
'posts_per_page' => 3,
'post_type' => 'product',
'product_tag' => 'featured',
'orderby' => 'date'
));
@chrismademe
chrismademe / slideout-menu.md
Last active January 29, 2016 08:44
Create a Simple Slideout Menu for your Responsive Website

Create a Simple Slideout Menu for your Responsive Website

One of the most important parts of any site is the navigation, especially with responsive design since you don't have much space to place with. That's why I put together this super simple yet effective slide out menu, using nothing but HTML, CSS and Javascript (no jQuery here!)

The HTML

First, layout the markup for your menu.

<nav id="slideout-menu" class="slideout-menu">