disablePointer: true, // important to disable the pointer events that causes the issues
disableTouch: false, // false if you want the slider to be usable with touch devices
disableMouse: false, // false if you want the slider to be usable with a mouse (desktop)
<div class="table">
<div class="first">Тут картинка</div>
<div class="second"><span class="dd">Тут текст который должен быть центру.</span></div>
<div class="third"></div>
<div class="fourth"></div>
</div>
.first {
background-color: blue;
height: 300px;
width: 300px;
float: left;
}
.second {
background-color: red;
height: 300px;
width: 300px;
float: left;
display: table;
vertical-align: middle;
}
.dd {
display: table-cell;
vertical-align: middle;
}
.third {
background-color: pink;
height: 300px;
width: 300px;
float: left;
clear: both;
}
.fourth {
background-color: yellow;
height: 300px;
width: 300px;
float: left;
}
.table {
display: table;
margin: 0 auto;
}
$term = get_queried_object();
$children = get_terms( $term->taxonomy, array(
'parent' => $term->term_id,
'hide_empty' => false
) );
// print_r($children); // uncomment to examine for debugging
if($children) { // get_terms will return false if tax does not exist or term wasn't found.
// term has children
}
public function calculate_shipping( $package ) {
global $woocommerce;
$customer = new WC_Cart();
$meePrice = $woocommerce->cart->subtotal;
$price = 500;
if($meePrice >= 5000) {
$price = 250;
}
$rate = array(
'id' => $this->id,
'label' => $this->title,
'cost' => $price,
'calc_tax' => 'per_item'
);
// Register the rate
$this->add_rate( $rate );
}