Skip to content

Instantly share code, notes, and snippets.

@beastaugh
Created July 9, 2009 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beastaugh/143523 to your computer and use it in GitHub Desktop.
Save beastaugh/143523 to your computer and use it in GitHub Desktop.
WordPress plugin to make sites using Tarski print as they appear on screen
<?php
/*
Plugin Name: Remove Print Style
Plugin URI: http://tarskitheme.com/
Description: Stop Tarski using its print stylesheet.
Author: Ben Eastaugh
Version: 1.0
Author URI: http://extralogical.net/
*/
function remove_tarski_print_style($styles) {
unset($styles['print']);
unset($styles['screen']['media']);
return $styles;
}
add_action('tarski_style_array', 'remove_tarski_print_style');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment