Skip to content

Instantly share code, notes, and snippets.

@spigists
spigists / custom.php
Created June 11, 2013 22:00
Changes the Read More text when using the_excerpt
/**
* 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');
@spigists
spigists / new_gist_file
Created June 11, 2013 22:11
WordPress Plugins
http://mansjonasson.se/wordpress-plugins/enable-media-replace/
@spigists
spigists / new_gist_file
Created July 9, 2013 17:58
Fix Google Maps controls and info card issues that are caused by Twitter Bootstrap
img[src*="gstatic.com/"], img[src*="googleapis.com/"] {
max-width: none;
}
@spigists
spigists / header
Created August 7, 2013 18:08
Fix the search box on WordPress 3.6 sites using older versions of Roots (non BS 3 versions)
<!--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 -->
@spigists
spigists / new_gist_file.css
Created October 2, 2013 16:16
Bootstrap 3 styles for Gravity Forms, make sure that in Forms > Settings you have Output CSS set to No and Output HTML5 set to Yes
.gform_wrapper ul {
padding-left: 0;
list-style: none; }
.gform_wrapper li {
margin-bottom: 15px; }
.gform_wrapper form {
margin-bottom: 0; }