Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Index Template
*
* Here we setup all logic and XHTML that is required for the index template, used as both the homepage
* and as a fallback template, if a more appropriate template file doesn't exist for a specific context.
*
* @package WooFramework
* @subpackage Template
*/
@media only screen and (min-width: 768px) {
.widget_woothemes_testimonials .quote.last {
margin-right: 0 !important;
}
.widget_woothemes_testimonials .quote:nth-child(3n+1) {
clear: none;
}
.widget_woothemes_testimonials .quote:nth-child(3n+3) {
margin-right: 3% !important;
clear: none;
/*
* Hide "Products" in WooCommerce breadcrumb, display 'E-store' on shop page
*/
function woo_custom_filter_breadcrumbs_trail ( $trail ) {
foreach ( $trail as $k => $v ) {
if ( strtolower( strip_tags( $v ) ) == 'products' ) {
if(is_shop()) { $trail[$k] = 'E-Store'; break; }
unset( $trail[$k] );
add_filter( 'woo_blog_template_query_args', 'woo_exclude_slide_tag_blogtemplate' );
function woo_exclude_slide_tag_blogtemplate ( $args ) {
$settings = array(
'featured_slide_group' => '0'
);
$settings = woo_get_dynamic_values( $settings );
// Process the category data and convert all categories to IDs.
add_filter( 'woo_post_more', 'woo_testimonial_meta_categories', 20, 1);
function woo_testimonial_meta_categories($html) {
if( is_archive('testimonials') ) {
$html = "";
$terms = get_the_terms( get_the_ID(), 'testimonial-category' );
$cats = '';
if ( is_array( $terms ) && 0 < count( $terms ) ) {
/* Blue border above logo*/
#header #logo {
border-top: 5px solid #2293e2;
}
/* Red border above navigation items*/
#navigation ul.nav > li.current_page_item a, #navigation ul.nav > li.current_page_parent a, #navigation ul.nav > li.current-menu-ancestor a, #navigation ul.nav > li.current-cat a, #navigation ul.nav > li.li.current-menu-item a {
border-top: 5px solid #de1e1e;
}
/* Red border above and below navigation sub-menus*/
#navigation ul.nav ul {
function woo_custom_typography() {
// Get options
global $woo_options;
// Reset
$output = '';
$default_google_font = false;
// Type Check for Array
@media only screen and (max-width: 767px) {
#loopedSlider.business-slider img.woo-image {
margin-left: -550px;
}
}
@media only screen and (max-width: 767px) {
#loopedSlider.business-slider img.woo-image {
position: absolute;
left: -550px;
}
#wrapper #loopedSlider.business-slider .content {
margin-top: 500px;
}
}
remove_filter( 'woothemes_testimonials_args', 'woo_customise_testimonials', 10 );