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
.gform_wrapper ul { | |
padding-left: 0; | |
list-style: none; } | |
.gform_wrapper li { | |
margin-bottom: 15px; } | |
.gform_wrapper form { | |
margin-bottom: 0; } |
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
<!--Start Search Form --> | |
<div class="span3"> | |
<div id="search" class="input-append"> | |
<form role="search" method="get" id="searchform" action="http://##SITE-URL-HERE##" _lpchecked="1"> | |
<label class="hide" for="s">Search for:</label> <input type="text" value="" name="s" id="s" class="span2" placeholder="Search..."> | |
<button type="submit" id="searchsubmit" value="Search" class="btn">Search</button></form> | |
</div> | |
</div> | |
<!--End Search Form --> |
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
img[src*="gstatic.com/"], img[src*="googleapis.com/"] { | |
max-width: none; | |
} |
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
http://mansjonasson.se/wordpress-plugins/enable-media-replace/ |
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
/** | |
* Changes the Read More text when using the_excerpt | |
*/ | |
function new_excerpt_more($more) { | |
global $post; | |
return '<a class="moretag" href="'. get_permalink($post->ID) . '">Read the full article...</a>'; | |
} | |
add_filter('excerpt_more', 'new_excerpt_more'); |
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
/** | |
* Custom functions | |
*/ | |
function jquery_enqueue() { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js", false, null); | |
wp_enqueue_script('jquery'); | |
} | |
if (!is_admin()) add_action("wp_enqueue_scripts", "jquery_enqueue", 11); |
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
/** | |
* Use Google's version of HTML5 shim but only for old versions of IE | |
*/ | |
function iehtml5_shim () { | |
global $is_IE; | |
if ($is_IE) | |
echo '<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->'; | |
} | |
add_action('wp_head', 'iehtml5_shim'); |
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
/** | |
* Remove useless dashboard widgets | |
*/ | |
function remove_dashboard_widgets(){ | |
global $wp_meta_boxes; | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); |
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
/** | |
* Change the default from and from name on WordPress emails | |
*/ | |
add_filter('wp_mail_from', 'new_mail_from'); | |
add_filter('wp_mail_from_name', 'new_mail_from_name'); | |
function new_mail_fom($old) { | |
return '[email protected]'; | |
} | |
function new_mail_from_name($old) { |
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
/** | |
* Remove the built in theme/plugin editor from the dashboard | |
*/ | |
define('DISALLOW_FILE_EDIT', true); |
NewerOlder