Created
February 17, 2012 13:57
-
-
Save jazzsequence/1853571 to your computer and use it in GitHub Desktop.
hides stuff in twentyeleven theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In use on http://museumthemes.com/progress-bar/