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
// Replace "Products" with "Reports" in breadcrumb. | |
add_filter( 'woo_breadcrumbs_trail', 'woo_custom_filter_breadcrumbs_trail_replaceproducts', 40 ); | |
function woo_custom_filter_breadcrumbs_trail_replaceproducts ( $trail ) { | |
foreach ( $trail as $k => $v ) { | |
if ( is_singular() && ( get_post_type() == 'product' ) && strtolower( strip_tags( $v ) ) == 'products' ) { | |
unset( $trail[$k] ); | |
} |
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
<div id="btn-cart" class="fr"> | |
<a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"> | |
<span class="btn-cart-inner"> | |
<?php | |
echo sprintf(_n('Shopping Tote – %d item', 'Shopping Tote – %d items ', $woocommerce->cart->get_cart_contents_count(), 'woothemes'), $woocommerce->cart->get_cart_contents_count()); | |
?> | |
</span> | |
</a> | |
</div> |
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
/* | |
WOO CUSTOM STYLESHEET | |
--------------------- | |
Instructions: | |
Add your custom styles in this file instead of style.css so it | |
is easier to update the theme. Simply copy an existing style | |
from style.css to this file, and modify it to your liking. */ |
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
#social-links a { | |
display: inline-block; | |
height: 28px; | |
width: 30px; | |
background-image: url(http://laurenfollett.com/wp-content/themes/canvas/images/ico-subscribe-social.png); | |
background-repeat: no-repeat; | |
} |
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
function woo_post_meta() { | |
if ( is_page() ) { return; } | |
$post_info = '<span class="small">' . _x( '', 'post datetime', 'woothemes' ) . '</span> [post_date] <span class="small">' . ' [post_edit]'; | |
printf( '<div class="post-meta">%s</div>' . "\n", apply_filters( 'woo_filter_post_meta', $post_info ) ); | |
} // End woo_post_meta() |
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
function woo_post_meta() { | |
if ( is_page() ) { return; } | |
$post_info = '<span class="small">' . __( 'By', 'woothemes' ) . '</span> [post_author_posts_link] <span class="small">' . _x( 'on', 'post datetime', 'woothemes' ) . '</span><span class="updated"> [post_date] </span><span class="small">' . __( 'in', 'woothemes' ) . '</span> [post_categories before=""] ' . ' [post_edit]'; | |
printf( '<div class="post-meta">%s</div>' . "\n", apply_filters( 'woo_filter_post_meta', $post_info ) ); | |
} // End woo_post_meta() | |
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
add_action( 'woo_header_inside', 'woo_add_wooslider' ); | |
function woo_add_wooslider () { | |
// WooSlider code here | |
wooslider(); | |
} // End woo_add_wooslider() |
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
function woo_display_breadcrumbs() { | |
global $woo_options; | |
if ( !is_home() && !is_front_page() && !is_singular( 'post' ) && !is_post_type_archive( 'post' ) && !is_page_template('template-blog.php') && !is_singular( 'portfolio' ) & !is_post_type_archive( 'portfolio' ) & !is_page_template('template-portfolio.php') ) { | |
if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { | |
echo '<section id="breadcrumbs">'; | |
woo_breadcrumbs(); | |
echo '</section><!--/#breadcrumbs -->'; | |
} | |
} | |
} // End woo_display_breadcrumbs() |