Limitar TAGS WOOCOMMERCE
//* Limitar TAGS WOOCOMMERCEadd_filter( 'woocommerce_product_tag_cloud_widget_args', 'tag_cloud_limit' );
function tag_cloud_limit($args){
if ( isset($args['taxonomy']) && $args['taxonomy'] == 'product_tag' ){
$args['number'] = 10;
}
return $args;
}
/*******************
Limit the number of tags displayed by Tag Cloud widget
*******************/add_filter( 'widget_tag_cloud_args', 'tj_tag_cloud_limit' );
function tj_tag_cloud_limit($args){
// Check if taxonomy option of the widget is set to tags
if ( isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag' ){
$args['number'] = 8; // Number of tags to show
}
return $args;
}
CSS
selector a{transition: .6s;
font-size: 10pt!important;
font-family: 'Poppins';
font-weight: 600;
margin:2px!important;
padding:3px 10px 3px 10px !important;
background-color: #23A455;
color:#212C3B;
border: none;
border-radius: 15px;
display: inline-block;
}
selector a:hover{
transition: .6s;
background-color: #fff;
color:#212C3B;
}
selector h5{
display: none;
}