@font-face {
font-family:'star';src:url('../fonts/star.eot');src:url('../fonts/star.eot?#iefix') format('embedded-opentype'), url('../fonts/star;.woff') format('woff'), url('../fonts/star.ttf') format('truetype'), url('../fonts/star.svg#star') format('svg');font-weight:normal;font-style:normal;
}
add_action( 'woocommerce_shop_loop_item_title', 'add_category-info', 20, 0 );
function add_category-info() {
global $post;
$categories = get_the_category($post->ID);
$cat_link = get_category_link($categories[0]->cat_ID);
echo '<a href="'.$cat_link.'">'.$categories[0]->cat_name.'</a>'
}
add_filter( 'woocommerce_breadcrumb_defaults', 'add_woocommerce_breadcrumbs' );
function add_woocommerce_breadcrumbs() {
return array(
'delimiter' => ' / ',
'wrap_before' => '<nav class="woocommerce-breadcrumb" itemprop="breadcrumb"><a href="https://site.ru/">Главная</a><span class="breadcrumb-separator"> / </span>',
'wrap_after' => '</nav>',
'before' => '',
'after' => '',
'home' => '<a href="https://site.ru/type/catalog">Каталог</a>'
);
}
h3 .post .category-tech{
color: #bada55;
}
.woocommerce .product .images, .woocommerce-page .product .images {
pointer-events: none;
}