Skip to content

Instantly share code, notes, and snippets.

View marcwiest's full-sized avatar
🌳
Branching out

Marc Wiest marcwiest

🌳
Branching out
View GitHub Profile
@marcwiest
marcwiest / README.md
Created August 28, 2018 18:55 — forked from jonathantneal/README.md
SASS @font-face mixin

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@marcwiest
marcwiest / dabblet.css
Created September 7, 2017 15:25 — forked from juptrking/dabblet.css
Masking with equilateral triangles in CSS
/**
* Masking with equilateral triangles in CSS
*/
body{
background: #fff;
min-height: 100%;
}
/*
<?php
wp_nav_menu( array(
'theme_location' => 'mobile',
'walker' => new Walker_Nav_Menu_Dropdown(),
'items_wrap' => '<div class="mobile-menu"><form><select onchange="if (this.value) window.location.href=this.value">%3$s</select></form></div>',
) );
class Walker_Nav_Menu_Dropdown extends Walker_Nav_Menu {
function start_lvl(&$output, $depth){
<?php
/* Register custom post types on the 'init' hook. */
add_action( 'init', 'my_register_post_types' );
/**
* Registers post types needed by the plugin.
*
* @since 0.1.0
* @access public
<?php
/**
* @package Custom Post Format Testing
* @version 2.0
*/
/*
Plugin Name: Post Format Testing
Plugin URI: http://andreasnurbo.com/extending-wordpress-post-formats/
Description: Simple plugin to extend the default post formats.
Author: Andreas Nurbo
<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
// http://twitter.com/brianblakely/
-->
<head>
<!-- Disable automatic DNS prefetching.