if ( is_home() || is_front_page()|| is_page_template('template-blog.php')) {
wp_enqueue_script('jquery.flexslider-min', get_template_directory_uri() .'/js/jquery.flexslider-min.js','','', true);
wp_enqueue_script('jquery.flexslider.start.main', get_template_directory_uri() .'/js/jquery.flexslider.start.main.js','','', true);
}
$argsuments = array(
'taxonomy' => 'product_cat',
'child_of' => 3416,
'title_li' => '',
'depth' => 4,
'hide_empty' => 1
);
wp_list_categories( $argsuments );
$argsuments['child_of'] = 3576;
wp_list_categories( $argsuments );
/**
* Child theme language
*/
function my_child_theme_setup() {
$path = get_stylesheet_directory() . '/lang';
load_child_theme_textdomain( 'child_theme_language', $path );
}
add_action( 'after_setup_theme', 'my_child_theme_setup' );
_e( 'My translatable text goes here.', 'child_theme_language' );
<section>
<div>
<img src="http://placehold.it/2447x396">
</div>
</section>
* {
margin: 0;
padding: 0;
}
section: {overflow:hidden;}
img {
width:100%;
}
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='img.jpg',
sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='img.jpg',
sizingMethod='scale')";
global $product;
$meta_values = get_post_meta($product->post->ID);
if(!$meta_values['wfg_single_gift_enabled']) {
$gift_id = $meta_values["_wfg_single_gift_products"];
$session_data = (unserialize($gift_id[0]));
echo $session_data[0];
}
$itemcat = $item->title;
$taxonomy = 'product_cat';
$empty = 0;
$args = array(
'taxonomy' => $taxonomy,
'hide_empty' => $empty
);
$all_categories = get_categories( $args );
foreach ($all_categories as $cat) {
$category_name = $cat->name;
if($category_name==$itemcat) {
$cat_name = $category_name;
$category_id = $cat->term_id;
$thumbnail_id = get_woocommerce_term_meta( $category_id, 'thumbnail_id', true );
$cat_image = wp_get_attachment_url( $thumbnail_id );
$description = $cat->description;
}
}
.trail-end-wrapper {
display: table-cell;
min-width: 276px;
height: 48px;
position: absolute;
left: 50%;
bottom: 0;
transform: translate(-50%, 0);
}