display: block;
color: #FFFFFF;
font-size: 1.25rem;
- content: attr(data-content);
+ content: attr(data-title);
z-index: 3;
top: 40%;
- left: 15%;
+ left: 8%;
text-align: center; }
#rotation ul li a:hover:after {
position: absolute;
<ul id="carousel_ul" >
<?php
+
+ $meta_query = WC()->query->get_meta_query();
+ $meta_query[] = array(
+ 'key' => '_featured',
+ 'value' => 'yes'
+ );
+ $args = array(
+ 'post_type' => 'product',
+ 'stock' => 1,
+ 'showposts' => 6,
+ 'orderby' => 'date',
+ 'order' => 'DESC',
+ 'meta_query' => $meta_query
+ );
- $args = array( 'post_type' => 'product', 'posts_per_page' => -1, 'product_tag' => 'frontpage-featured' );
$loop = new WP_Query( $args );
+
while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?>
<?php
-
+//
if (has_post_thumbnail( $loop->post->ID )) {
$url = get_post_thumbnail_id($loop->post->ID);
$thumbnail = wp_get_attachment_image_src( $url, 'full', false);
(string)$thumbnail = $thumbnail[0];
}
$product_url = get_permalink($loop->post->ID);
+ $title = $loop->post->post_title;
+ echo $title;
+
?>
<li class="tour-slides" id="tour-slide-<?php echo $loop->post->ID; ?>" style="background: url('<?php echo $thumbnail; ?>') no-repeat center center; background-size: cover;">
- <a class='tour-link' href="<?php echo $product_url; ?>"></a>
+ <a class='tour-link' href="<?php echo $product_url; ?>" data-title="<?php echo $title; ?>"></a>
</li>
<?php
} else { ?>
<?php wp_list_categories( 'taxonomy=product_tag&pad_counts=1&title_li=' ); ?>
</ul>
</div>
+<!--
<div id="categories_sidebar_container">
<h5><?php _e( 'Regions of France', 'woothemes' ) ?></h5>
<ul id="regions_sidebar">
?>
</ul>
</div>
+-->