I use a widget of Product Status Filter, Can the name “In stock” “Out of Stock change?”
Can I not showing”on sale”?
Please suggest
This topic has 3 replies, 2 voices, and was last updated 2 months, 4 weeks ago ago by Dreamedia Creative
I use a widget of Product Status Filter, Can the name “In stock” “Out of Stock change?”
Can I not showing”on sale”?
Please suggest
Dear @Dreamedia Creative,
1. Please add the following code under functions.php file locates in your child theme:
function n2t_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'In stock' :
$translated_text = 'Your Text 1';
break;
case 'Out of stock' :
$translated_text = 'Your Text 2';
break;
}
return $translated_text;
}
add_filter( 'gettext', 'n2t_text_strings', 20, 3 );
2. Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:
div#etheme_product_status_filter-2 ul li:last-child {
display: none;
}
Kind regards,
The 8Theme Team
Thanks for the support! My topic “Widget of Product Status Filter, Can the name “Out of Stock change”” has been successfully resolved.
The issue related to '‘Widget of Product Status Filter, Can the name “Out of Stock change”’' has been successfully resolved, and the topic is now closed for further responses