Я только что установил шаблон Wordpress со встроенным WooCommerce.Все в порядке, но названия отдельных продуктов представляют собой простой текст, и я хотел бы преобразовать их в ссылки на продукты, как на предварительном изображении.
Может кто-нибудь помочь мне исправить это?Спасибо!!http://www.mvdev.it/succhi/
if ( !function_exists( 'sunnyjar_woocommerce_open_thumb_wrapper' ) ) {
//Handler of add_action( 'woocommerce_before_subcategory_title', 'sunnyjar_woocommerce_open_thumb_wrapper', 9 );
//Handler of add_action( 'woocommerce_before_shop_loop_item_title', 'sunnyjar_woocommerce_open_thumb_wrapper', 9 );
function sunnyjar_woocommerce_open_thumb_wrapper($cat='') {
sunnyjar_storage_set('in_product_item', true);
?>
<div class="post_item_wrap">
<div class="post_featured">
<div class="post_thumb">
<a class="hover_icon hover_icon_link" href="<?php echo esc_url(is_object($cat) ? get_term_link($cat->slug, 'product_cat') : get_permalink()); ?>">
<?php
}
}
if ( !function_exists( 'sunnyjar_woocommerce_open_item_wrapper' ) ) {
//Handler of add_action( 'woocommerce_before_subcategory_title', 'sunnyjar_woocommerce_open_item_wrapper', 20 );
//Handler of add_action( 'woocommerce_before_shop_loop_item_title', 'sunnyjar_woocommerce_open_item_wrapper', 20 );
function sunnyjar_woocommerce_open_item_wrapper($cat='') {
?>
</a>
</div>
</div>
<div class="post_content">
<?php
}
}