Skip to content

Instantly share code, notes, and snippets.

@tomharrigan
tomharrigan / gist:4505658
Created January 10, 2013 20:49
handle multiple rows of testimonials
elseif ( (count( $query ) == $count) || ($count % 3 == 0) ) { $css_class .= ' last'; }
#loopedSlider .content {
display: none;
}
#header .nav-toggle {
margin-top: .5em;
}
.page-template-template-blog-php #wrapper {
padding-bottom: 0;
}
#content {
border-bottom: 1px solid black;
}
.widget_maps_overview_widget h3 {
padding-top: 15px;
padding-left: 20px;
}
.full-content {
border-bottom: 2px dashed blue;
}
.home.page .title, .full-content * {
max-width: 980px;
margin: 0 auto;
}
.home #content {
max-width: 100% !important;
padding: 0;
.post .entry blockquote, .type-page .entry blockquote, .type-feature .entry blockquote, .search-results .type-product .entry blockquote {
quotes:'\201C''\201C';
}
.pagination.woo-pagination .page-numbers.current, .pagination.woo-pagination a:hover {
color: #fff;
background: #211e1a;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
box-shadow: inset 0 0 2px rgba(0,0,0,0.4);
-moz-box-shadow: inset 0 0 2px rgba(0,0,0,0.4);
-webkit-box-shadow: inset 0 0 2px rgba(0,0,0,0.4);
}
function new_excerpt_more($more) {
global $post;
return ' <a href="'. get_permalink($post->ID) . '">...more</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
$comm = $woo_options['woo_comments'];
if ( ( $comm == 'page' || $comm == 'both' ) ) {
comments_template();
}
add_action( 'init', 'woo_custom_move_navigation', 10 );
function woo_custom_move_navigation () {
// Remove main nav from the woo_header_after hook
remove_action( 'woo_header_after','woo_nav', 10 );
// Add main nav to the woo_header_inside hook
add_action( 'woo_header_inside','woo_nav', 10 );
} // End woo_custom_move_navigation()
@tomharrigan
tomharrigan / gist:4525589
Created January 13, 2013 18:36
Replace default Function slider with WooSlider
function woo_featured_slider_loader () {
$settings = woo_get_dynamic_values( array( 'featured' => 'true' ) );
if ( (is_home() || is_front_page()) && ( $settings['featured'] == 'true' ) ) {
//get_template_part( 'includes/featured', 'slider' );
wooslider(array( 'slider_type' => 'slides', 'smoothheight' => 'true' ) );
}
} // End woo_featured_slider_loader()