Skip to content

Instantly share code, notes, and snippets.

@jazzsequence
Created February 17, 2012 13:57
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 jazzsequence/1853571 to your computer and use it in GitHub Desktop.
Save jazzsequence/1853571 to your computer and use it in GitHub Desktop.
hides stuff in twentyeleven theme
<?php
/*
Plugin Name: TwentyEleven Hide stuff
Plugin URI: https://gist.github.com/1853571
Description: hides stuff in twentyeleven theme
Version: 0.1
Author: Chris Reynolds
Author URI: http://museumthemes.com
License: GPL3
*/
/*
TwentyEleven Hide Stuff
Copyright (C) 2012 | Chris Reynolds (chris@arcanepalette.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
http://www.opensource.org/licenses/gpl-3.0.html
*/
function twentyeleven_hide_stuff() {
$hide_stuff = '<style type="text/css">';
$hide_stuff .= 'form#searchform { display: none; }';
$hide_stuff .= '.home header.entry-header { display: none; }';
// this is specifically for museumthemes.com/progress-bar/
$hide_stuff .= '.wppb-wrapper, .wppb-progress { margin: auto; }';
$hide_stuff .= '</style>';
echo $hide_stuff;
}
add_action('wp_head','twentyeleven_hide_stuff');
?>
@jazzsequence
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment