Skip to content

Instantly share code, notes, and snippets.

View heytricia's full-sized avatar

Tricia Francis heytricia

  • WP Goodness
  • Lafayette, CO
  • 08:25 (UTC -07:00)
View GitHub Profile
@heytricia
heytricia / Contract Killer 3.md
Created November 4, 2016 21:35
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@heytricia
heytricia / application.js
Created December 19, 2016 20:07 — forked from timkeller/application.js
JS to make .subnav sticky
!function ($) {
$(function(){
// fix sub nav on scroll
var $win = $(window)
, $nav = $('.subnav')
, navTop = $('.subnav').length && $('.subnav').offset().top - 40
, isFixed = 0
@heytricia
heytricia / tp-tinymce-remove-unused-formats.php
Created December 22, 2016 22:07 — forked from thierrypigot/tp-tinymce-remove-unused-formats.php
Remove unused formats in WordPress Editor TinyMCE
<?php
/*
* Modify TinyMCE editor to remove H1.
*/
add_filter('tiny_mce_before_init', 'tp_tinymce_remove_unused_formats' );
function tp_tinymce_remove_unused_formats($init)
{
// Add block format elements you want to show in dropdown
// $init['block_formats'] = 'Paragraph=p;Address=address;Pre=pre;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6';
$init['block_formats'] = 'Paragraph=p;Pre=pre;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6';