FacetWP – change number range “Min” and “Max” labels independently
Question
I have a slight problem for renaming facets individually
as said here on this page,
this code rename all the min and max for all facets range number.
<?php
// Add to your (child) theme's functions.php
add_filter( 'gettext', function( $translated_text, $text, $domain ) {
if ( 'fwp-front' == $domain ) {
if ( 'Min' == $translated_text ) {
$translated_text = 'Min (translated)';
}
elseif ( 'Max' == $translated_text ) {
$translated_text = 'Max (translated)';
}
}
return $translated_text;
}, 10, 3 );
I have a facet price and another area.
I would like to rename their placeholders independently.
if somebody understands the code which line I must add to allow me this modification?
thank you for your patience
0
2 years
2020-10-09T13:10:22-05:00
2020-10-09T13:10:22-05:00 0 Answers
22 views
0
Leave an answer