View new_gist_file.css
.gform_wrapper ul { | |
padding-left: 0; | |
list-style: none; } | |
.gform_wrapper li { | |
margin-bottom: 15px; } | |
.gform_wrapper form { | |
margin-bottom: 0; } |
View header
<!--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 --> |
View new_gist_file
img[src*="gstatic.com/"], img[src*="googleapis.com/"] { | |
max-width: none; | |
} |
View new_gist_file
http://mansjonasson.se/wordpress-plugins/enable-media-replace/ |
View custom.php
/** | |
* 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'); |
View functions.php
/** | |
* 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); |
View functions.php
/** | |
* 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'); |
View functions.php
/** | |
* 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']); |
View functions.php
/** | |
* 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 'noreply@go-spi.com'; | |
} | |
function new_mail_from_name($old) { |
View functions.php
/** | |
* Remove the built in theme/plugin editor from the dashboard | |
*/ | |
define('DISALLOW_FILE_EDIT', true); |
NewerOlder