I'm currently using Bootstrap 3.3.7 and because my site is huge it isn't easy to migrate to v4. Nevertheless I'd like to use the new Auto-Layout-columns (Variable width content) feature (see screenshot below).
Has anybody an idea for a workaround?
<div class="container-fluid">
<div class="row">
<div class="col-xs-6 col-xs-push-3 col-md-3">Fixed 250px</div>
<div class="col-xs-6 col-xs-pull-3 col-md-3">Auto</div>
<div class="col-xs-6 col-md-3">Auto</div>
<div class="col-xs-6 col-md-3">Auto</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud) 在函数文件中,我添加了一个过滤器挂钩,以在变体产品“最低”价格之前添加自定义标签。
如何获得与价格在同一行的标签?
请参阅我的代码和下面的屏幕截图:
add_filter( 'woocommerce_variable_sale_price_html', 'wc_wc20_variation_price_format', 10, 2 );
add_filter( 'woocommerce_variable_price_html', 'wc_wc20_variation_price_format', 10, 2 );
function wc_wc20_variation_price_format( $price, $product ) {
$min_price = $product->get_variation_price( 'min', true );
$price = sprintf( __( 'From%1$s', 'woocommerce' ), wc_price( $min_price ) );
return $price;
}
Run Code Online (Sandbox Code Playgroud)